0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::lexical: Eliminate allocation on lex_cast(string) conversions.

This commit is contained in:
Jason Volk 2018-05-29 02:26:01 -07:00
parent b32a5b6a61
commit 0766000b20

View file

@ -71,7 +71,7 @@ T
ircd::_lex_cast(const string_view &s)
try
{
return boost::lexical_cast<T>(s);
return boost::lexical_cast<T>(data(s), size(s));
}
catch(const boost::bad_lexical_cast &e)
{