Hi Nathan,
2011/11/3 Nathan Crookston
2011/11/2 Mateusz Łoskot
: On 3 November 2011 00:41, Vicente J. Botet Escriba
wrote: try adding
#include
It is at the end of
It is there. See my example above.
While io.hpp includes the appropriate operator<<, it defines it in namespace fusion and fusion::operators. Since the code generated from struct adaptation appears to reside in fusion::traits and fusion::extension, I'm guessing that adapted structs don't have ADL kicking in. Placing a 'using boost::fusion::operators::operator<<;' declaration in namespace demo is one way to fix the problem.
Spot on. Works. Thanks! Not sure if I missed it while reading the docs, or the docs don't mention this trick. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org