Boost logo

Boost Users :

From: Christian Henning (chhenning_at_[hidden])
Date: 2006-05-25 18:40:52

Hi Robert, I would be interested in doing that. Here is what I would
like to achieve:

typedef tuple< string, string, string > Key;
typedef map< Key, int > MyMap;

int _tmain(int argc, _TCHAR* argv[])
   MyMap aMap;

      const MyMap& caMap = aMap;
      ofstream ofs( "Settings.txt" );
      boost::archive::text_oarchive oa( ofs );

      oa & caMap;

        return 0;

This code fails because no serialize function is defined for the Key type.

Can you point me to the code section that does the serialization of std::pair.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at