|
Boost Users : |
From: Richard Jennings (Richard.Jennings_at_[hidden])
Date: 2005-02-28 04:19:03
XML serialization is working fine for me with BCB6.
With some of my programs I do get error E2015 reported when I do a make.
If I do a build (i.e. rebuild all modules from scratch) then it compiles
just fine. I haven't looked in to why this is yet.
-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Pablo Aguilar
Sent: 26 February 2005 04:50
To: boost-users_at_[hidden]
Subject: [Boost-users] [serialization] problem with Borland C++ Builder
6
Hi,
I've just started using the serialization library, and am trying to do
so with BC++6.
If I'm right, it should work just as long as I remove support for xml
archives (because Spirit doesn't work on BC++)
I've a class Cliente which has an appropriate serialize member fxn. And
a manager class called Clientes which stores a
std::vector<boost::shared_ptr<Cliente> >
When doing:
void Clientes::serialize(Archive& ar, unsigned const version) {
ar & m_imp->m_clientes;
// where m_imp is a pimpl-style struct
// m_clientes is of the type specified above }
(this is trimmed down code, I can post the original if required)
I get the following error:
[C++ Error] serialization.hpp(121): E2015 Ambiguity between
'boost::serialization::void serialize<
boost::archive::text_iarchive
, boost::shared_ptr<cc::servidor::Cliente>
> (
boost::archive::text_iarchive &
, _STL::vector<boost::shared_ptr<cc::servidor::Cliente> > &
, const unsigned int
)'
and
'boost::serialization::void serialize<
boost::archive::text_iarchive
, _STL::vector<boost::shared_ptr<cc::servidor::Cliente> >
>(
boost::archive::text_iarchive &
, _STL::vector<boost::shared_ptr<cc::servidor::Cliente> > &
, const unsigned int
)'
(I removed the allocator parts to make the message clearer)
So the question is, how do I remove the ambiguity?
Thanks for your help...
Pablo Aguilar
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
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