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