[Assorted-commits] SF.net SVN: assorted:[1649] sandbox/trunk/src/cc/boost_any.cc
Brought to you by:
yangzhang
From: <yan...@us...> - 2010-05-14 18:45:16
|
Revision: 1649 http://assorted.svn.sourceforge.net/assorted/?rev=1649&view=rev Author: yangzhang Date: 2010-05-14 18:45:10 +0000 (Fri, 14 May 2010) Log Message: ----------- boost_any demo Added Paths: ----------- sandbox/trunk/src/cc/boost_any.cc Added: sandbox/trunk/src/cc/boost_any.cc =================================================================== --- sandbox/trunk/src/cc/boost_any.cc (rev 0) +++ sandbox/trunk/src/cc/boost_any.cc 2010-05-14 18:45:10 UTC (rev 1649) @@ -0,0 +1,14 @@ +#include <boost/any.hpp> +#include <iostream> +#include <vector> +using namespace boost; +using namespace std; +int main() { + any a = 3; + any b = (const char *) "hello"; + vector<any> c; + c.push_back(1); + c.push_back((const char*) "hi"); + c.push_back(vector<any>()); + return 0; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |