From 498bdf56be579d41df55ceff2aef448cbbfbc659 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Fri, 14 Feb 2020 18:18:51 -0500 Subject: [PATCH] Fix standalone --- include/boost/static_string/static_string.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/static_string/static_string.hpp b/include/boost/static_string/static_string.hpp index 662c924..1776d6f 100644 --- a/include/boost/static_string/static_string.hpp +++ b/include/boost/static_string/static_string.hpp @@ -4619,8 +4619,9 @@ struct hash< #ifndef BOOST_STATIC_STRING_STANDALONE return boost::hash_range(str.begin(), str.end()); #else - using sv = boost::static_string::basic_string_view; - return std::hash()(sv(str.data(), str.size())); + using view_type = typename boost::static_string:: + basic_static_string::string_view_type; + return std::hash()(view_type(str.data(), str.size())); #endif } };