mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 14:31:11 +01:00
ircd::lexical: Eliminate allocation on lex_cast(string) conversions.
This commit is contained in:
parent
b32a5b6a61
commit
0766000b20
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ T
|
||||||
ircd::_lex_cast(const string_view &s)
|
ircd::_lex_cast(const string_view &s)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return boost::lexical_cast<T>(s);
|
return boost::lexical_cast<T>(data(s), size(s));
|
||||||
}
|
}
|
||||||
catch(const boost::bad_lexical_cast &e)
|
catch(const boost::bad_lexical_cast &e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue