Why min_element give me errors without BOOST_RANGE_ENABLE_CONCEPT_ASSERT defined 0? Is it uses only for make error messages more readable? Is it safe to define it to 0?
#include <vector>//#define BOOST_RANGE_ENABLE_CONCEPT_ASSERT 0#include <boost/range.hpp>#include <boost/range/adaptors.hpp>#include <boost/range/algorithm.hpp>#include <boost/range/numeric.hpp>#include <boost/bind.hpp>
struct foo{int x;};
int main(){using namespace boost::adaptors; using boost::bind;
std::vector<foo> vec;auto rng = vec | transformed(bind(&foo::x, _1));boost::accumulate(rng, 0); // okboost::min_element(rng); // error}