Boost logo

Boost :

From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2005-06-09 07:14:56


Marcin Tustin wrote:
>
>
> template<class Archive >
> static void serialize(Archive & ar, D2::Message& g, const
> unsigned
> int version)
> {
> ar & g.getType(); // an int - error complains about this line.
>
> c:\D2\API\NewClient\EnhancedMessageHandler.h(132) : error C2679:
> binary '&' : no operator found which takes a right-hand operand of
> type 'uint32' (or there is no acceptable conversion)

What is the return type of getType()? If it's 'uint32' per the error
message, and the Archive type is '*_oarchive', your attempting to assign a
value to a temporary rvalue(terminology?). If it did compile, I doubt it
would perform as your expecting.

Jeff Flinn


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk