[serialization]: 1.32/VC7.1:error C2039: 'serialize' : is not a member of 'std::vector<_Ty>'

Hi Robert I got the following error from the serialization access.cpp: : Schema.cpp c:\boost\boost\serialization\access.hpp(106) : error C2039: 'serialize' : is not a member of 'std::vector<_Ty>' with [ _Ty=GLOB::SUB::Key ] ... ... For sure, I have doubled checked that the "boost/serialization/vector.hpp" file is well included at the very beginning of Schema.cpp This error appears only with binary archive. With an XML archive, the source Schema.cpp does not produce any error. I am not able to reproduce it on a small case. Is there anyway to trace/or activate an helper that could show up be the underlying problem?? Regards Francis ANDRE

Perhaps this is an issue regarding two phase lookup. What is your compiler etc. This is referred to in the documentation. The issue is what namespace the serialization free function is placed into. Currently, this is sort of a hack - as a review of the document will reveal. Good news is that next version - currenlty checked into the main cvs trunk - resolves the issue in much better manner. Robert Ramey Francis ANDRE wrote:
Hi Robert
I got the following error from the serialization access.cpp:
Schema.cpp c:\boost\boost\serialization\access.hpp(106) : error C2039: 'serialize' : is not a member of 'std::vector<_Ty>' with [ _Ty=GLOB::SUB::Key ] ... ... For sure, I have doubled checked that the "boost/serialization/vector.hpp" file is well included at the very beginning of Schema.cpp
This error appears only with binary archive. With an XML archive, the source Schema.cpp does not produce any error.
I am not able to reproduce it on a small case. Is there anyway to trace/or activate an helper that could show up be the underlying problem??
Regards
Francis ANDRE
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Good news is that next version - currenlty checked into the main cvs trunk - resolves the issue in much better manner.
I downloaded the latest main cvs trunk Boost. Bjam generation of the libs are ok. But most if not all tests runned with runtest.bat are failing as "boost::exit_success" is not defined (extract from bjam log follows) ..\..\..\libs\serialization\test\test_polymorphic.cpp(54) : error C2039: 'exit_success' n'est pas membre de 'boost' ..\..\..\libs\serialization\test\test_polymorphic.cpp(54) : error C2065: 'exit_success' identificateur non d,clar, "cl" /Zm800 -nologo EHsc -c -DBOOST_ARCHIVE_TEST=polymorphic_text_archive.hpp -DBOOST_LIB_DIAGN OSTIC=1 /Z7 /Od /Ob0 /EHsc /GR /MDd /Op /Zc:forScope Zc:wchar_t -I"c:\boost\bin\boost\libs\serialization\test" -I"C:\boost" -I" D:\Program Files\Microsoft Visual Studio .NET 003\VC7\include" -I"C:\boost" -Fo"c:\boost\bin\boost\libs\serialization\t est\test_polymorphic_text_archive.test\vc-7_1\debug\threading-multi\test_pol ymorphic.obj" -Tp"..\..\..\libs\serialization\test\test_polymorphic.cpp" It seems that the include <boost/cstdlib.hpp> is missing somewhere?? Francis
participants (2)
-
Francis ANDRE
-
Robert Ramey