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
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_ptrcc::servidor::Cliente
> (
boost::archive::text_iarchive &
, _STL::vectorcc::servidor::Cliente > &
, const unsigned int
)'
and
'boost::serialization::void serialize<
boost::archive::text_iarchive
, _STL::vectorcc::servidor::Cliente >
>(
boost::archive::text_iarchive &
, _STL::vectorcc::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