Ray's playground

 

C++ templates chapter 5(Tricky Basics)

stack8.hpp

stack8test.cpp

To make sure that a member of a class template, for which the type is parameterized, gets initialized, you have to define a default constructor that uses an initializer list to initialize the member.

posted on 2009-09-23 17:02  Ray Z  阅读(242)  评论(0编辑  收藏  举报

导航