0

I've got a namespace like

namespace FOO::BAR {
    [..] myNameSpaceContent [..]
}

The MOC compiler spots an error on the first ligne. This error disappears when I put :

namespace FOO {
    namespace BAR {
        [..] myNameSpaceContent [..]
    }
}

Do you happen to know how I can solve that MOC problem ?

1 Answers1

2

It is not a MOC problem, but rather a C++ issue;

namespace FOO::BAR {

is not valid syntax prior to C++17, unfortunately. Only

namespace FOO { namespace BAR {

is okay.

Sebastian Mach
  • 38,570
  • 8
  • 95
  • 130