Boost logo

Boost Users :

Subject: [Boost-users] AIX Boost 1.39 serialization warning message:
From: Avi Bahra (avibahra_at_[hidden])
Date: 2009-07-23 04:55:49


Take the following simple use of serialization:

//===============================================
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/utility.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/serialization/string.hpp>
#include <fstream>
#include <assert.h>

class Defs {
public:
    Defs(const std::string& f) : fileName_(f) {}
    Defs() {}
       bool operator==(const Defs& rhs) const { return fileName_ ==
rhs.fileName_;}
    const std::string& fileName() { return fileName_;}
private:
    std::string fileName_;

    friend class boost::serialization::access;
    template<class Archive>
    void serialize(Archive & ar, const unsigned int /*version*/) {
         ar & fileName_;
    }
};

int main()
{
    Defs saveDefs("saveFile.txt");
    {
        // Save the defs file
        std::ofstream ofs( saveDefs.fileName().c_str() );
        boost::archive::text_oarchive oa( ofs );
        oa << saveDefs;
    }
    {
        // Restore the defs file
        Defs loadDefs;
        std::ifstream ifs(saveDefs.fileName().c_str());
        boost::archive::text_iarchive ia(ifs);
        ia >> loadDefs;

        assert( saveDefs == loadDefs );
     }
    return 0;
}
//===============================================

This produces the following messages from the AIX v10.1 compiler.

vacpp.compile.c++ bin/vacpp/debug/src/TestSerialisation.o
"/s1a/emos_esuite/emos_data/sms/boost_1_39_0/boost/archive/detail/oserializer.hpp",
line 538.5: 1540-2400 (W) "boost::serialization::STATIC_WARNING" is
undefined. The delete operator will not call a destructor.
"/s1a/emos_esuite/emos_data/sms/boost_1_39_0/boost/archive/detail/oserializer.hpp",
line 530.13: 1540-0700 (I) The previous message was produced while
processing
"boost::archive::save<boost::archive::text_oarchive,Defs>(text_oarchive &,
Defs &)".
"/s1a/emos_esuite/emos_data/sms/boost_1_39_0/boost/archive/detail/common_oarchive.hpp",
line 64.9: 1540-0700 (I) The previous message was produced while processing
"boost::archive::detail::common_oarchive<boost::archive::text_oarchive>::save_override<Defs>(Defs
&, int)".
"/s1a/emos_esuite/emos_data/sms/boost_1_39_0/boost/archive/basic_text_oarchive.hpp",
line 75.13: 1540-0700 (I) The previous message was produced while processing
"boost::archive::basic_text_oarchive<boost::archive::text_oarchive>::save_override<Defs>(Defs
&, int)".
"/s1a/emos_esuite/emos_data/sms/boost_1_39_0/boost/archive/detail/interface_oarchive.hpp",
line 64.21: 1540-0700 (I) The previous message was produced while processing
"boost::archive::detail::interface_oarchive<boost::archive::text_oarchive>::operator<<
<Defs>(Defs &)"

Does anyone know if the boost serialisation library is still actively
maintained on this compiler ?

  Best regards,
Ta,
   Avi



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