mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
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
This commit is contained in:
parent
cb68d25714
commit
b560fcca0d
1 changed files with 2 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue