mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
do not run variadic bind example for c++ older than c++14
This commit is contained in:
parent
9234eb3216
commit
356c50a342
@ -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";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user