
26 Aug
2005
26 Aug
'05
5:51 p.m.
Neal Becker wrote:
I don't understand why this simple test doesn't compile. Any hints?
[...]
test.cc:16: error: no match for ‘operator<<’ in ‘ar << 0’ /usr/include/boost/archive/detail/interface_oarchive.hpp:84: note: candidates are: Archive& boost::archive::detail::interface_oarchive<Archive>::operator<<(T&) [with T = int, Archive = boost::archive::binary_oarchive]
It seems an lvalue is required, which you don't provide, just a temporary. Regards, Stefan