That is a pretty nice example, but you probably want to take the filling code and make it into a public method fill(const T& fill_value);
And changetoCode:private: T p_data;for it to work.Code:private: T* p_data;![]()
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 25
Threaded View
|
Click Here to Expand Forum to Full Width |