Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Serialization not building
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2009-10-14 09:15:09


On Wed, Oct 14, 2009 at 6:13 AM, OvermindDL1 <overminddl1_at_[hidden]> wrote:
> /* snip */

And another thing, why does the binary and text archives work fine
with some very simple code (some strings in shared_ptr's), but xml
archives gives this entire error:

1>R:\SDKs\boost\built_head\include\boost-1_40\boost/archive/basic_xml_oarchive.hpp(87)
: error C2664: 'boost::mpl::assertion_failed' : cannot convert
parameter 1 from 'boost::mpl::failed
************boost::serialization::is_wrapper<T>::* ***********' to
'boost::mpl::assert<false>::type'
1> with
1> [
1> T=UserManagerServer
1> ]
1> No constructor could take the source type, or constructor
overload resolution was ambiguous
1> R:\SDKs\boost\built_head\include\boost-1_40\boost/archive/detail/interface_oarchive.hpp(64)
: see reference to function template instantiation 'void
boost::archive::basic_xml_oarchive<Archive>::save_override<T>(T
&,int)' being compiled
1> with
1> [
1> Archive=boost::archive::xml_oarchive,
1> T=UserManagerServer
1> ]
1> r:\programming_projects\web_projects\something\Serializer_Data_Storage_Sync.hpp(40)
: see reference to function template instantiation 'Archive
&boost::archive::detail::interface_oarchive<Archive>::operator
<<<UserManagerServer>(T &)' being compiled
1> with
1> [
1> Archive=boost::archive::xml_oarchive,
1> T=UserManagerServer
1> ]

So what do I need to do to the xml archive to get it to work like the others?


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