add support for older boost in the cpp tests
This commit is contained in:
parent
42dc568034
commit
028b042185
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
#include <boost/version.hpp>
|
||||
#include <boost/filesystem/convenience.hpp>
|
||||
namespace fs = boost::filesystem;
|
||||
using fs::path;
|
||||
|
@ -72,7 +73,9 @@ int main( int, char*[] )
|
|||
|
||||
if (!::boost::detail::test_errors()) {
|
||||
std::clog << "C++ fonts registration: \x1b[1;32m✓ \x1b[0m\n";
|
||||
#if BOOST_VERSION >= 104600
|
||||
::boost::detail::report_errors_remind().called_report_errors_function = true;
|
||||
#endif
|
||||
} else {
|
||||
return ::boost::report_errors();
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
#include <iostream>
|
||||
#include <mapnik/params.hpp>
|
||||
|
@ -71,7 +71,9 @@ int main( int, char*[] )
|
|||
|
||||
if (!::boost::detail::test_errors()) {
|
||||
std::clog << "C++ parameters: \x1b[1;32m✓ \x1b[0m\n";
|
||||
#if BOOST_VERSION >= 104600
|
||||
::boost::detail::report_errors_remind().called_report_errors_function = true;
|
||||
#endif
|
||||
} else {
|
||||
return ::boost::report_errors();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue