diff --git a/include/boost/range/sub_range.hpp b/include/boost/range/sub_range.hpp index d1c3b99b0..70055a095 100644 --- a/include/boost/range/sub_range.hpp +++ b/include/boost/range/sub_range.hpp @@ -184,7 +184,9 @@ class sub_range_base sub_range(const sub_range& r) : base(impl::adl_begin(const_cast(static_cast(r))), impl::adl_end(const_cast(static_cast(r)))) - { } + { } +#else + sub_range(const sub_range& r) = default; #endif template< class ForwardRange2 >