mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-24 01:27:37 +02:00
doc: Added note regarding IO for adapted type
[skip ci] closes: track 6091
This commit is contained in:
@ -1522,6 +1522,16 @@ each element. Analogously, the global `operator>>` has been overloaded
|
|||||||
to extract __sequence__(s) from generic input streams by recursively
|
to extract __sequence__(s) from generic input streams by recursively
|
||||||
calling `operator>>` for each element.
|
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__
|
The default delimiter between the elements is space, and the __sequence__
|
||||||
is enclosed in parenthesis. For Example:
|
is enclosed in parenthesis. For Example:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user