I've solved the issue:
In case anyone is interested: You need to put the ostream& operator<< into the namespace of the severity-enum to make it work.
Cheers
Sebastian > Hi folks,
______________________________
When taking this example [1] and modifying the enum 'severity_level' like this:
namespace x {
struct test
{
enum severity_level
{
normal,
notification,
warning,
error,
critical
};
};
}
and replacing all references to severity_level with the appropriate x::test::severity_level the 'operator<<' overload for the severity_level is not issued. Can anyone help me with this one?
I can supply the complete modified example if needed
Cheers
Sebastian
[1] https://www.boost.org/doc/libs/1_58_0/libs/log/example/doc/ tutorial_attributes.cpp
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users
_________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users