help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cannot pass objects of non-POD type


From: Jonathan Turkanis
Subject: Re: cannot pass objects of non-POD type
Date: Thu, 14 Oct 2004 09:07:41 -0600

"Ron Natalie" <ron@sensor.com> wrote in message
news:416e8928$0$28304$9a6e19ea@news.newshosting.com...
> Jonathan Turkanis wrote:
>
> > Furthermore, IIRC, Andrei's original implementation was actually
non-conforming
> > because it passed user-defined types through ellipses. In order to get a
> > completely conforming implementation you have to jump through a few more
hoops.
> >
> User defined types are fine.
> It's user defined non-POD types that are not.

I should have said 'arbitrary user-defined types.' The type traits templates in
question are meant to be able to handle almost any arguments. (Unfortunately,
they still can't. I believe

    is_convertible< noncopyable, noncopyable >::value

still causes a compiler error.)

> The problem is that the variable arg mechanism was never updated
> to deal with C++.   It's restricted to behavior from C (with the
> goofy exception of allowing all the args to a function to be variable
> but there's no defined way of extracting such).

I understand.

Jonathan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]