Update documentation for toml::from and toml::into

This commit is contained in:
J.C. Moyer 2019-10-03 21:25:24 -04:00
parent ad7eb56634
commit 6a7dbb7875

View File

@ -1091,7 +1091,7 @@ namespace toml
template<>
struct from<ext::foo>
{
ext::foo from_toml(const value& v)
static ext::foo from_toml(const value& v)
{
ext::foo f;
f.a = find<int >(v, "a");
@ -1131,7 +1131,7 @@ template<>
struct from<ext::foo>
{
template<typename C, template<typename ...> class M, template<typename ...> class A>
ext::foo from_toml(const basic_value<C, M, A>& v)
static ext::foo from_toml(const basic_value<C, M, A>& v)
{
ext::foo f;
f.a = find<int >(v, "a");
@ -1187,7 +1187,7 @@ namespace toml
template<>
struct into<ext::foo>
{
toml::table into_toml(const ext::foo& f)
static toml::table into_toml(const ext::foo& f)
{
return toml::table{{"a", f.a}, {"b", f.b}, {"c", f.c}};
}