Skip to content

Commit d2b37ff

Browse files
committed
Neaten syntax for C++ header section
1 parent 2ebd76a commit d2b37ff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

C++/Bonus Notes/BONUS C++ - Headers.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ This section I'm just taking wholesale from http://www.cplusplus.com/articles/Gw
217217
> class MyClass : public Parent // Parent object, so #include "parent.h"
218218
> {
219219
> public:
220-
> std::vector<int> avector; // vector object, so #include <vector>
221-
> Foo* foo; // Foo pointer, so forward declare Foo
222-
> void Func(Bar& bar); // Bar reference, so forward declare Bar
220+
> std::vector<int> avector; // vector object, so #include <vector>
221+
> Foo* foo; // Foo pointer, so forward declare Foo
222+
> void Func(Bar& bar); // Bar reference, so forward declare Bar
223223
>
224-
> friend class MyFriend; // friend declaration is not a dependency
225-
> // don't do anything about MyFriend
224+
> friend class MyFriend; // friend declaration is not a dependency
225+
> // don't do anything about MyFriend
226226
> };
227227
>
228228
> #endif // __MYCLASS_H_INCLUDED__

0 commit comments

Comments
 (0)