#include #include #include #include #include typedef CGAL::Quotient NT; typedef CGAL::Cartesian Kernel; namespace po = boost::program_options; struct Help_exception {}; template class Bench_bbox : public Kernel { public: int init(void) { return 0; } void clean(void) {} void sync(void) {} void op(void) {} }; typedef Bench_bbox My_bench_bbox; namespace po = boost::program_options; namespace cb = CGAL::benchmark; int main(int argc, char * argv[]) { po::options_description opts("Options"); opts.add_options()("help,h", "print help message"); cb::Option_parser bench_opts; opts.add(bench_opts.get_opts()); po::variables_map var_map; try { po::store(po::command_line_parser(argc, argv).options(opts).run(), var_map); po::notify(var_map); if (var_map.count("help")) { std::cout << opts << std::endl; throw Help_exception(); } } catch(Help_exception & /* e */) { return 0; } catch(std::exception & e) { std::cerr << e.what() << std::endl; return 1; } cb::Benchmark bench("Leftturn", bench_opts.get_seconds()); bench(); return 0; }