diff --git a/include/boost/geometry/extensions/gis/io/wkb/detail/parser.hpp b/include/boost/geometry/extensions/gis/io/wkb/detail/parser.hpp index 48e4d5207..d91979b11 100644 --- a/include/boost/geometry/extensions/gis/io/wkb/detail/parser.hpp +++ b/include/boost/geometry/extensions/gis/io/wkb/detail/parser.hpp @@ -15,6 +15,7 @@ #include #include +#include #include #include #include @@ -199,7 +200,7 @@ struct point_container_parser } typedef typename std::iterator_traits::difference_type size_type; - assert(num_points <= boost::uint32_t( (std::numeric_limits::max)() ) ); + BOOST_ASSERT(num_points <= boost::uint32_t( (std::numeric_limits::max)() ) ); size_type const container_size = static_cast(num_points); size_type const point_size = dimension::value * sizeof(double); @@ -248,7 +249,7 @@ struct linestring_parser return false; } - assert(it != end); + BOOST_ASSERT(it != end); return point_container_parser::parse(it, end, linestring, order); } }; diff --git a/include/boost/geometry/extensions/gis/projections/impl/pj_auth.hpp b/include/boost/geometry/extensions/gis/projections/impl/pj_auth.hpp index 78e3bb214..f198cc51a 100644 --- a/include/boost/geometry/extensions/gis/projections/impl/pj_auth.hpp +++ b/include/boost/geometry/extensions/gis/projections/impl/pj_auth.hpp @@ -38,6 +38,8 @@ #include #include +#include + namespace boost { namespace geometry { namespace projections { namespace detail { @@ -53,7 +55,7 @@ static const int APA_SIZE = 3; /* determine latitude from authalic latitude */ inline void pj_authset(double es, double* APA) { - assert(0 != APA); + BOOST_ASSERT(0 != APA); double t = 0; @@ -72,7 +74,7 @@ inline void pj_authset(double es, double* APA) inline double pj_authlat(double beta, const double* APA) { - assert(0 != APA); + BOOST_ASSERT(0 != APA); double const t = beta + beta;