C++ namespaces advice

前端 未结 9 1182
长发绾君心
长发绾君心 2020-11-28 21:48

I\'m just teaching myself C++ namespaces (coming from a C# background) and I\'m really starting to think that even with all the things that C++ does better than most other l

9条回答
  •  抹茶落季
    2020-11-28 22:36

    Atleast as a small help, in some cases you can do this:

    namespace foo = A::B::C::D;
    

    And then reference A::B::C::D as foo. But only in some cases.

提交回复
热议问题