From dc3f817db5bb2904cebd25c264302717270d50ed Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sat, 13 Oct 2018 14:43:23 +0100 Subject: [PATCH] Incredis currently uses boost's string view, not std's. --- include/incredis/int_conv.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/incredis/int_conv.hpp b/include/incredis/int_conv.hpp index 3d70f8d..57fc3b6 100644 --- a/include/incredis/int_conv.hpp +++ b/include/incredis/int_conv.hpp @@ -20,6 +20,7 @@ #include #include +#include #include "duckhandy/implem/int_conv.hpp" namespace redis { @@ -69,8 +70,8 @@ namespace redis { } }; template - struct IntConv, std::string_view>> { - static T conv (const std::string_view& in) { + struct IntConv, boost::string_view>> { + static T conv (const boost::string_view& in) { return dhandy::ary_to_int(in.data(), in.data() + in.size()); } };