Boost logo

Boost Users :

Subject: [Boost-users] [log] Unable to use own severity struct encapsulated in namespace
From: Sebastian Messerschmidt (sebastian.messerschmidt_at_[hidden])
Date: 2018-04-04 08:12:38


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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net