[Assorted-commits] SF.net SVN: assorted:[1006] sandbox/trunk/src/cc/smartptrs.cc
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-10-08 19:45:32
|
Revision: 1006 http://assorted.svn.sourceforge.net/assorted/?rev=1006&view=rev Author: yangzhang Date: 2008-10-08 19:45:23 +0000 (Wed, 08 Oct 2008) Log Message: ----------- added demo of using scoped arrays Added Paths: ----------- sandbox/trunk/src/cc/smartptrs.cc Added: sandbox/trunk/src/cc/smartptrs.cc =================================================================== --- sandbox/trunk/src/cc/smartptrs.cc (rev 0) +++ sandbox/trunk/src/cc/smartptrs.cc 2008-10-08 19:45:23 UTC (rev 1006) @@ -0,0 +1,6 @@ +#include <boost/scoped_array.hpp> +using namespace boost; +int main() { + scoped_array<int> a(new int[5]); + return 0; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |