parse/value: style

This commit is contained in:
Danny Robson 2020-01-28 14:13:03 +11:00
parent 450b65e2e5
commit 46d19464b5

View File

@ -41,6 +41,21 @@ namespace cruft::parse {
} }
} }
template <typename T> T from_string (const char *data) { return from_string<T> (cruft::view (data)); }
template <typename T> T from_string (std::string const &data) { return from_string<T> (cruft::view (data)); } ///////////////////////////////////////////////////////////////////////////
template <typename T>
T
from_string (const char *data)
{
return from_string<T> (cruft::view (data));
}
//-------------------------------------------------------------------------
template <typename T>
T
from_string (std::string const &data)
{
return from_string<T> (cruft::view (data));
}
} }