|
Boost Users : |
From: Pablo Aguilar (pablo.aguilar_at_[hidden])
Date: 2005-02-25 23:50:23
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 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