parse/value: style
This commit is contained in:
parent
450b65e2e5
commit
46d19464b5
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user