Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(641)

Unified Diff: build/bootstrap/boost_trycompile/boost_trycompile.cpp

Issue 4662068: Alembic 1.0rc1, changes since 0.9.3
Patch Set: Created 12 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/bootstrap/boost_trycompile/boost_trycompile.cpp
===================================================================
--- a/build/bootstrap/boost_trycompile/boost_trycompile.cpp
+++ b/build/bootstrap/boost_trycompile/boost_trycompile.cpp
@@ -1,19 +1,19 @@
-#include <boost/program_options.hpp>
+#include <boost/thread.hpp>
-// Can test with find_package(python)
-// #include <boost/python.hpp>
-// #include <Python.h>
-// using namespace boost::python;
#include <fstream>
#include <iostream>
+#include <string>
using std::ostream;
using std::ofstream;
using std::cout;
-namespace po = boost::program_options;
+void hello()
+{
+ std::cout << "Yes we don't have no libboost_thread today." << std::endl;
+}
int main(int argc, char *argv[])
{
@@ -22,26 +22,8 @@
std::cout << "ERROR: Boost is compiled as dynamically linked. We're expecting statically linked" << std::endl;
#endif
- // test program_options
- po::options_description desc( "boost_testcompile options" );
- desc.add_options()
-
- ( "help,h", "prints this help message" )
-
- ;
-
- po::variables_map vm;
- po::store( po::command_line_parser( argc, argv ).
- options( desc ).run(), vm );
- po::notify( vm );
-
- //-*************************************************************************
-
- if ( vm.count( "help" ) )
- {
- std::cout << desc << std::endl;
- return -1;
- }
+ boost::thread bt( hello );
+ bt.join();
return 0;
}
« no previous file with comments | « build/bootstrap/boost_trycompile/CMakeLists.txt ('k') | build/bootstrap/zlib_trycompile/zlib_trycompile.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b