diff --git a/include/boost/geometry/algorithms/detail/throw_on_empty_input.hpp b/include/boost/geometry/algorithms/detail/throw_on_empty_input.hpp index 3d83e6930..21f5fe40b 100644 --- a/include/boost/geometry/algorithms/detail/throw_on_empty_input.hpp +++ b/include/boost/geometry/algorithms/detail/throw_on_empty_input.hpp @@ -24,6 +24,10 @@ // So decided that at least for Boost 1.49 this is commented for // scalar results, except distance. +#if defined(BOOST_GEOMETRY_EMPTY_INPUT_NO_THROW) +#include +#endif + namespace boost { namespace geometry { @@ -39,6 +43,8 @@ inline void throw_on_empty_input(Geometry const& geometry) { throw empty_input_exception(); } +#else + boost::ignore_unused(geometry); #endif }