argagg % g++ --std=c++11 main.cpp
main.cpp:6:15: error: call to function 'operator<<' that is neither visible in the template definition nor found by argument-dependent lookup
std::cout << param << std::endl;
^
main.cpp:13:5: note: in instantiation of function template specialization 'logGeneric<argagg::parser>' requested here
logGeneric<argagg::parser>(argParser);
^
./include/argagg/argagg.hpp:1692:15: note: 'operator<<' should be declared prior to the call site or in namespace 'argagg'
std::ostream& operator << (std::ostream& os, const argagg::parser& x)
^
1 error generated.
Prior to this change when trying to compile the following sample code:
I get this:
This change fixes the issue.