id summary reporter owner description type status milestone component version severity resolution keywords cc 6091 Not documented requirement about I/O operators Mateusz Loskot Joel de Guzman "The Fusion documentation in Boost 1.47 does not mention that in order to make Fusion-adapted types usable with input and output operators, it is necessary to import these operators into type's namespace. The problem is discussed in the thread [http://lists.boost.org/boost-users/2011/11/71518.php Adapted struct I/O]. Here is sample based on the [http://www.boost.org/doc/libs/1_47_0/libs/fusion/doc/html/fusion/adapted/adapt_tpl_struct.html demo::employee] example that shows correct use of Fusion-adapted type: {{{ #include #include #include #include #include #include namespace demo { // This does the trick, but not documented using boost::fusion::operators::operator<<; using boost::fusion::operators::operator>>; template struct employee { Name name; Age age; }; } // Any instantiated demo::employee is now a Fusion sequence BOOST_FUSION_ADAPT_TPL_STRUCT( (Name)(Age), (demo::employee) (Name)(Age), (Name, name) (Age, age)) int main() { demo::employee e; std::cin >> e; std::cout << e << std::endl; } }}} " Bugs closed Boost 1.68.0 fusion Boost 1.47.0 Problem fixed