parse/value: add from_string overload for std::string_view

This commit is contained in:
Danny Robson 2021-12-14 11:14:18 +10:00
parent d3a7a48544
commit 5685f1ebb1

View File

@ -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));
}
}