Differences between boost::string_ref and boost::string_view
问题 Boost provides two different implementations of string_view , which will be a part of C++17: boost::string_ref in utility/string_ref.hpp boost::string_view in core/string_view.hpp Are there any significant differences between these? Which should be preferred going forward? Note: I noticed in Boost 1.61, boost::log has deprecated string_ref in favor of string_view; perhaps that's an indicator? (http://www.boost.org/users/history/version_1_61_0.html) 回答1: Funnily enough right now I'm at the