I am using BOOST_CHECK_CLOSE which is defined in test_tools.hpp. I my test I have #include <boost/test/unit_test.hpp> Aparently this requires that I also include #include <boost/test/floating_point_comparison.hpp> wouldn't it be more correct to have this include in the test_tools.hpp file? Jarl
Jarl Friis <jarl <at> softace.dk> writes:
I am using
BOOST_CHECK_CLOSE which is defined in test_tools.hpp.
I my test I have #include <boost/test/unit_test.hpp>
Aparently this requires that I also include #include <boost/test/floating_point_comparison.hpp>
wouldn't it be more correct to have this include in the test_tools.hpp file?
It was intentionally separated into standalone file to avoid unnecessary dependency. I consider changing this, siince this header doesn't really bring a lot with it. Gennadiy
participants (2)
-
Gennadiy Rozental
-
Jarl Friis