boost::any_range<gsl::string_span<>> crash in Release mode
问题 I'm observing a rather weird behaviour of the following piece of code: #include <boost/range/adaptor/transformed.hpp> #include <boost/range/any_range.hpp> #include <vector> #include <string> #include <iostream> #include "gsl.h" template <typename T> using ImmutableValueRange = boost::any_range<T, boost::bidirectional_traversal_tag, /*const*/ T>; template <typename T, typename C> ImmutableValueRange<T> make_transforming_immutable_range(const C& container) { return container | boost::adaptors: