From 30c044b03afe130305849b1cefda9b1e6dad80c9 Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Thu, 5 Jul 2018 22:15:33 +0900 Subject: [PATCH] doc: Added note regarding IO for adapted type [skip ci] closes: track 6091 --- doc/sequence.qbk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/sequence.qbk b/doc/sequence.qbk index a9fc83d3..4625f8a5 100644 --- a/doc/sequence.qbk +++ b/doc/sequence.qbk @@ -1522,6 +1522,16 @@ each element. Analogously, the global `operator>>` has been overloaded to extract __sequence__(s) from generic input streams by recursively calling `operator>>` for each element. +Please note that, to display your adapted types via fusion IO system, +corresponding overloaded operators should be introduced to same namespace +of the type. + + namespace your_awesome_library + { + using boost::fusion::operators::operator>>; // for input + using boost::fusion::operators::operator<<; // for output + ... + The default delimiter between the elements is space, and the __sequence__ is enclosed in parenthesis. For Example: