Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2005-01-13 10:19:51


On Thu, 13 Jan 2005 13:13:41 +0000, Russell Hind wrote
> I'm trying to serialize a ptime to an xml archive. I've included
> boost/date_time/posix_time/time_serialize.hpp but get an ambiguity error:
>
> [C++ Error] serialization.hpp(121): E2015 Ambiguity between
> 'boost::serialization::void
> serialize<boost::archive::xml_iarchive>(boost::archive::xml_iarchive
> &,boost::posix_time::ptime &,const unsigned int)' and
> 'boost::serialization::void
> serialize<boost::archive::xml_iarchive,
> boost::posix_time::ptime>(boost::archive::xml_iarchive &,
> boost::posix_time::ptime &,const unsigned int)'
>
> Is this a problem with the compiler or should this work?

Well I suspect it is a compiler issue -- it certainly works on other compilers
such as gcc. We didn't turn on the serialization regression tests for
date-time during the 1.32 push so unfortunately I don't have an accurate
accounting of all the compiler status w.r.t date-time serialization.

Jeff


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