parse/value: add from_string overload for std::string_view
This commit is contained in:
parent
d3a7a48544
commit
5685f1ebb1
@ -58,4 +58,13 @@ namespace cruft::parse {
|
||||
{
|
||||
return from_string<T> (cruft::view (data));
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
template <typename T>
|
||||
T
|
||||
from_string (std::string_view data)
|
||||
{
|
||||
return from_string<T> (cruft::view (data));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user