From 0766000b20b926255f7224a1fcf60c624c69eb6a Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 29 May 2018 02:26:01 -0700 Subject: [PATCH] ircd::lexical: Eliminate allocation on lex_cast(string) conversions. --- ircd/lexical.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/lexical.cc b/ircd/lexical.cc index 022b1cba7..06c6adb9c 100644 --- a/ircd/lexical.cc +++ b/ircd/lexical.cc @@ -71,7 +71,7 @@ T ircd::_lex_cast(const string_view &s) try { - return boost::lexical_cast(s); + return boost::lexical_cast(data(s), size(s)); } catch(const boost::bad_lexical_cast &e) {