Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   Re: What kind of error can cause such a problem? (http://www.velocityreviews.com/forums/t267708-re-what-kind-of-error-can-cause-such-a-problem.html)

Ron Natalie 06-25-2003 02:51 PM

Re: What kind of error can cause such a problem?
 

"Chandra Shekhar Kumar" <chandra.kumar@oracle.com> wrote in message news:3EF8B047.DCECBAD6@oracle.com...
> cud u plzz give more details...perhaps u r calling sizeof() on some
> temporary which is nomore alive
>

Temporaries don't have any problem with sizeof (and sizeof is a compile
time issue that has nothing to do with object lifetime).

Most likely the sizeof is being applied to an incomplete definition.

class foo;
sizeof (foo)

Sizeof is an operator by the way not a function. It's not "called" on anything
and the parens are not part of the operator.




All times are GMT. The time now is 05:32 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.