
24 Oct
2009
24 Oct
'09
5:20 a.m.
Ahhh - so try ar >> static_cast(a2p); Robert Ramey troy d. straszheim wrote:
Ben wrote:
{ std::ifstream ifs(fname); boost::archive::binary_iarchive ar(ifs); ar >> static_cast(a2p); }
You're trying to write to an rvalue. Note that
int *ip = 0; static_cast
(ip) = 0; // lvalue required as // left operand of assignment doesn't compile either...
-t