From b560fcca0d92d3de41c976bb129cacaee990d311 Mon Sep 17 00:00:00 2001 From: mat007 Date: Sun, 12 May 2013 08:58:17 +0000 Subject: [PATCH] Added a warning in the documentation about possible ODR violations with logging git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@641 860be788-9bd5-4423-9f1e-828f051e677b --- build/boost/doc/customisation.qbk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/boost/doc/customisation.qbk b/build/boost/doc/customisation.qbk index 652f255..f6046a3 100644 --- a/build/boost/doc/customisation.qbk +++ b/build/boost/doc/customisation.qbk @@ -12,6 +12,8 @@ By default the library attempts to serialize to an std::ostream and if this is n [note Any incomplete type is gracefully handled and yields a '?'.] +[warning Serializing a type inconsistently (including across several translation units) violates the [@http://en.wikipedia.org/wiki/One_Definition_Rule One Definition Rule].] + If for some reason the serialization to an std::ostream shouldn't be used, it can be overridden by a serialization operator to a mock::stream, for instance to log user_type declared in user_namespace : [mock_stream_user_type]