-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of niXman Sent: Monday, November 21, 2011 4:34 PM To: boost-users@lists.boost.org Subject: [Boost-users] boost.uuid typo error
Hello list!
In the docmantation for boost.uuid on this link: http://www.boost.org/doc/libs/1_48_0/libs/uuid/uuid.html#Stream_operators in the example of usage boost::lexical_cast<> with boost::uuids::uuid: boost::uuids::uuid u1; // initialize uuid
std::string s = boost::lexical_caststd::string(u); // <<<<<<<<<<<< must be u1 boost::uuids::uuid u2 = boost::lexical_castboost::uuids::uuid(s);
assert(u1 == u2);
I wish that boost documentation was famous as well as Qt documentation ;)
It's just this sort of 'featurette' that Quickbook snippets allow authors to avoid - by including only stuff that compiles (and perhaps also runs). And if you change the source code, the example changes too - without updating the original test.. You can also easily include snippets of the output too. Paul --- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow@hetp.u-net.com