Boost logo

Boost Users :

Subject: Re: [Boost-users] Change from binary_oarchive to text_oarchive gives 'sizeof' compilation errors
From: James Vanns (james.vanns_at_[hidden])
Date: 2008-09-26 05:22:00


I have found where it happens (after reading through a comment in a header file). For the text archive objects (but not for the binary for some reason) the object you wish to serialize/deconstruct must be const. Make this object const and the errors go away.

Jim

----- Original Message -----
From: "Matthias Troyer" <troyer_at_[hidden]>
To: boost-users_at_[hidden]
Sent: Friday, 26 September, 2008 7:47:55 AM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [Boost-users] Change from binary_oarchive to text_oarchive gives 'sizeof' compilation errors

On 25 Sep 2008, at 11:12, James Vanns wrote:

> Hi, in trying to debug a problem we are experiencing here with
> binary archives I tried switching to text archives to see if we get
> the same behaviour. However, now I can't even compile my code! A
> straight swap for binary_oarchive to text_oarchive gives me these
> errors:
>
> error: invalid application of ‘sizeof’ to incomplete type
> ‘boost::STATIC_ASSERTION_FAILURE<false>’
>
> The arrangement of my header files is like so:

You will need to send a complete code example that gives the error and
tell us where the error appears.

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users

-- 
James Vanns
Systems Programmer
Framestore CFC Ltd.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net