Building a Win32 console app, the following code compiles just fine:
#include "stdafx.h"
#include
c:\program files (x86)\boost\boost_1_36_0\boost\archive\basic_xml_oarchive.hpp(88) : 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=SomeClass 1> ] 1> No constructor could take the source type, or constructor overload resolution was ambiguous 1> c:\program files (x86)\boost\boost_1_36_0\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=SomeClass 1> ] 1> c:\users\daniel\documents\visual studio 2008\projects\testdata\testdata.cpp(31) : see reference to function template instantiation 'Archive &boost::archive::detail::interface_oarchive<Archive>::operator <<<SomeClass>(T &)' being compiled 1> with 1> [ 1> Archive=boost::archive::xml_oarchive, 1> T=SomeClass 1> ]
Basically, I can't archive into XML. Can someone please explain what I am doing wrong? I am using Windows Vista, Visual Studio 2008 and boost v36, Thanks