fix(cpp-convention): Add namespace x::y to example
This commit is contained in:
@@ -187,8 +187,7 @@ than to read.
|
|||||||
// Header file commentary
|
// Header file commentary
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace foo {
|
namespace foo::bar {
|
||||||
namespace bar {
|
|
||||||
|
|
||||||
// When forward declaring a class you can choose to use indenting.
|
// When forward declaring a class you can choose to use indenting.
|
||||||
namespace robot {
|
namespace robot {
|
||||||
@@ -207,8 +206,7 @@ private:
|
|||||||
int the_answer_;
|
int the_answer_;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace bar
|
} // namespace foo::bar
|
||||||
} // namespace foo
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user