Boost logo

Boost :

From: Vishnu Mahadevan Menon (vishnu_m_menon_at_[hidden])
Date: 2005-04-20 03:58:17


Hello!

I seem to be getting the following compilation error
even after I've included
<boost/serialization/vector.hpp> in the source file.
I'm using VS.net 7.1 to compile.

[QUOTE]

c:\Boost\include\boost_1_32_0\boost\serialization\access.hpp(106)
: error C2039: 'serialize' : is not a member of
'std::vector<_Ty>'
        with
        [
            _Ty=std::string
        ]
       
c:\Boost\include\boost_1_32_0\boost\serialization\serialization.hpp(78)
: see reference to function template instantiation
'void
boost::serialization::access::serialize<Archive,T>(Archive
&,T &,const unsigned int)' being compiled
        with
        [
            Archive=boost::archive::xml_iarchive,
            T=std::vector<std::string>
        ]
       
c:\Boost\include\boost_1_32_0\boost\serialization\serialization.hpp(121)
: see reference to function template instantiation
'void
boost::serialization::serialize<Archive,T>(Archive &,T
&,const unsigned int)' being compiled
        with
        [
            Archive=boost::archive::xml_iarchive,
            T=std::vector<std::string>
        ]
       
c:\Boost\include\boost_1_32_0\boost\archive\detail\iserializer.hpp(159)
: see reference to function template instantiation
'void
boost::serialization::serialize_adl<Archive,T>(Archive
&,T &,const unsigned int)' being compiled
        with
        [
            Archive=boost::archive::xml_iarchive,
            T=std::vector<std::string>
        ]
       
c:\Boost\include\boost_1_32_0\boost\archive\detail\iserializer.hpp(109)
: while compiling class-template member function 'void
boost::archive::detail::iserializer<Archive,T>::load_object_data(boost::archive::detail::basic_iarchive
&,void *,const unsigned int) const'
        with
        [
            Archive=boost::archive::xml_iarchive,
            T=std::vector<std::string>
        ]

[Long dump.. UNQUOTE]

Could anyone tell me why the above is happening and
how to get around the problem? I'll post the
source-code if that'll help!

I also searched and stumbled into
(http://lists.boost.org/boost/2005/02/19606.php) which
*seems* to be saying that the issue is addressed
somewhere in the serialization documentation, but was
unable to locate where.

Thanks and regards,
Vishnu.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


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