diff options
author | Adam <adamwheins@gmail.com> | 2015-06-01 22:00:52 -0400 |
---|---|---|
committer | Adam <adamwheins@gmail.com> | 2015-06-01 22:00:52 -0400 |
commit | 47d3cea47e8c5203efa857070a00dcfbff67b019 (patch) | |
tree | 005310463fc7d61686c82e5ba6fda3f0ed808427 /c++.html.markdown | |
parent | cea52ca43490b74316781c23779654fd46aaeab4 (diff) |
Template example class should have public method so it can get called externally.
Diffstat (limited to 'c++.html.markdown')
-rw-r--r-- | c++.html.markdown | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/c++.html.markdown b/c++.html.markdown index b214de7a..d049408a 100644 --- a/c++.html.markdown +++ b/c++.html.markdown @@ -445,6 +445,7 @@ int main () { // define a class or function that takes a type parameter: template<class T> class Box { +public: // In this class, T can be used as any other type. void insert(const T&) { ... } }; |