summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <adamwheins@gmail.com>2015-06-01 22:00:52 -0400
committerAdam <adamwheins@gmail.com>2015-06-01 22:00:52 -0400
commit47d3cea47e8c5203efa857070a00dcfbff67b019 (patch)
tree005310463fc7d61686c82e5ba6fda3f0ed808427
parentcea52ca43490b74316781c23779654fd46aaeab4 (diff)
Template example class should have public method so it can get called externally.
-rw-r--r--c++.html.markdown1
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&) { ... }
};