Boost logo

Boost Users :

Subject: Re: [Boost-users] Serializing UUIDs into text archives
From: Matthias Vallentin (vallentin_at_[hidden])
Date: 2012-03-15 13:04:16


>> int main()
>> {
>>   std::vector<char> v;
>>   std::ofstream f("/tmp/foo");
>>   boost::archive::text_oarchive oa(f);
>>
>>   const boost::uuids::uuid id = boost::uuids::random_generator()(); // try
>> const

Sorry, I should have added that I actually tried both const and
non-const versions, per your earlier suggestion. Making the uuid const
does not seem to have an effect.

    Matthias


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