Boost logo

Boost :

Subject: Re: [boost] [serialization] problems implementing free-standing functions
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-03-04 12:01:59


Thorsten Ottosen skrev:
> From: Thorsten Ottosen [mailto:thorsten.ottosen_at_[hidden]]

>> Is it not posssible to turn this feature into a debugging aid, rather
>> than
>> something that is enabled by default? I'm thinking that the cost of the
>> current strategy very much out-weights its benefits :-( .
>
> *** that was my intention when I changed it from ERROR to WARNING.

Here's my error:

d:\boost\trunk\boost/utility/serialize_auto_buffer.hpp(62) : error
C2664: 'boost
::serialization::make_nvp' : cannot convert parameter 2 from 'unsigned
int' to '
unsigned int &'

Produced by this line:

             ar << boost::serialization::make_nvp( "count",
                                                   c.capacity() );

Why do I need to store the object locally first?

I'm using visual C++ 9 SP1.

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk