Closed marco-langer closed 2 years ago
Nice, thanks!
I don't understand why it wasn't caught by the tests, are we using BOOST_GIL_IO_USE_BOOST_FILESYSTEM
in the test runners?
@marco-langer
Good question. I don't understand why tests did not catch it. I don't see BOOST_GIL_IO_USE_BOOST_FILESYSTEM
defined anywhere.
The GHA basically run b2 test
:
https://github.com/boostorg/gil/blob/9ecdb876b33e06725b3b81e9db3ad0d9f60c58f7/.github/workflows/ci.yml#L114
which only runs minimal IO test called simple_all_formats
:
https://github.com/boostorg/gil/blob/9ecdb876b33e06725b3b81e9db3ad0d9f60c58f7/test/extension/io/Jamfile#L36-L44
So, for C++11 and C++14 none of these #define
-s should happen
https://github.com/boostorg/gil/blob/9ecdb876b33e06725b3b81e9db3ad0d9f60c58f7/include/boost/gil/io/detail/filesystem.hpp#L14-L21
and for simple_all_formats
test build for C++11 and C++14, this case should happen:
https://github.com/boostorg/gil/blob/9ecdb876b33e06725b3b81e9db3ad0d9f60c58f7/include/boost/gil/io/detail/filesystem.hpp#L36-L38
Description
PR #636 has added detection for the
<filesystem>
header, but now examples using the IO extensions can't be compiled with C++11 or C++14 anymore. This PR fixes this issue.References
Compiling one of the examples, e.g.
results in
Tasklist