|
Boost : |
From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2005-08-26 12:51:24
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk