|
Boost Users : |
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2007-11-08 10:07:21
Oliver Kania wrote:
> Hello out there !
> I have an urgent problem concerning boost::serialize.
> I have split the serialize operation into save / load as described
> in the tutorial:
> ===================================================
> template<class Archive>
> void save( Archive &ar, unsigned int version) {
...
> error C2662: 'void
> jedox::palo::AbstractCache<C,Exception>::save<Archive>(Archive
> &,unsigned int)' :
> cannot convert 'this' pointer from 'const
> jedox::palo::AbstractCache<C,Exception>' to
> 'jedox::palo::AbstractCache<C,Exception> &'
'const' in the error message is saying that save should be a const
member function with the signature:
template<class Archive>
void save( Archive &ar, unsigned int version) const {
Jeff Flinn
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net