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.


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