[Assorted-commits] SF.net SVN: assorted:[1007] sandbox/trunk/src/cc/template_inheritance.cc
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-10-08 19:51:20
|
Revision: 1007 http://assorted.svn.sourceforge.net/assorted/?rev=1007&view=rev Author: yangzhang Date: 2008-10-08 19:51:10 +0000 (Wed, 08 Oct 2008) Log Message: ----------- demo of how to inherit template classes Added Paths: ----------- sandbox/trunk/src/cc/template_inheritance.cc Added: sandbox/trunk/src/cc/template_inheritance.cc =================================================================== --- sandbox/trunk/src/cc/template_inheritance.cc (rev 0) +++ sandbox/trunk/src/cc/template_inheritance.cc 2008-10-08 19:51:10 UTC (rev 1007) @@ -0,0 +1,3 @@ +template <typename T> class A {}; +template <typename T> class B : public A<T> {}; +int main() { return 0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |