Support removing the C++11 standard reference wrappers.

This commit is contained in:
Kohei Takahashi
2015-01-15 18:58:33 +09:00
parent 54dedc5e98
commit ce8bf1079a
5 changed files with 47 additions and 2 deletions

View File

@ -121,7 +121,7 @@ creates a __list__ of type
__list__<void (*)(int)>
[heading boost::ref]
[heading Reference Wrappers]
Fusion's generation functions (e.g. __make_list__) by default stores the
element types as plain non-reference types. Example:
@ -151,6 +151,8 @@ For example:
See __boost_ref__ for details.
Since C++11, the standard reference wrappers (`std::ref` and `std::cref`) work as well.
[heading adt_attribute_proxy]
To adapt arbitrary data types that do not allow direct access to their members,

View File

@ -254,7 +254,8 @@ Metafunction to apply __element_conversion__ to the full argument type.
It removes references to `const`, references to array types are kept, even
if the array is `const`. Reference wrappers are removed (see
__note_boost_ref__).
__note_boost_ref__)[footnote Since C++11, the standard reference wrappers
are also removed.].
[heading Header]