
9 Jun
2005
9 Jun
'05
12:14 p.m.
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