do not run variadic bind example for c++ older than c++14

This commit is contained in:
Paul Dreik 2016-06-15 21:01:51 +02:00
parent 9234eb3216
commit 356c50a342

View File

@ -453,12 +453,14 @@ int main ()
remove("out.png"); remove("out.png");
//example with variadic bind (requires c++14) //example with variadic bind (requires c++14)
#if ( __cplusplus>= 201402L) || ( defined(_MSC_VER) && (_MSC_VER >= 1900) )
try { try {
demonstrateVariadicBind(); demonstrateVariadicBind();
} catch (std::exception& e) { } catch (std::exception& e) {
std::cout << "SQLite exception: " << e.what() << std::endl; std::cout << "SQLite exception: " << e.what() << std::endl;
return EXIT_FAILURE; // unexpected error : exit the example program return EXIT_FAILURE; // unexpected error : exit the example program
} }
#endif
std::cout << "everything ok, quitting\n"; std::cout << "everything ok, quitting\n";