Boost logo

Boost :

From: Francis ANDRE (francis.andre_at_[hidden])
Date: 2004-11-08 13:47:23

> Class path already has a member, path::string(), which in the current
> implementation returns a reference to m_path, and in any implementation
I have change the derived class to:

class OSD : public boost::filesystem::path {
        friend class boost::serialization::access;
        friend std::ostream & operator<<(std::ostream &os, const OSD&);
        template<class Archive>
        void serialize(Archive &ar, const unsigned int version) {
            ar & boost::filesystem::path::string();

And it works!!

While I am using frequently boost::filesystem::path::string() , I did not
even try to use it in that case before, because I was certain to get a
compile error on the statement:

           ar & boost::filesystem::path::string();

as boost::filesystem::path::string() is a const member returning a const
std::string& reference

So, forget my request .. sorry...


> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at