From 6a7dbb787570460675b50af9bd60765752d4bd6b Mon Sep 17 00:00:00 2001 From: "J.C. Moyer" Date: Thu, 3 Oct 2019 21:25:24 -0400 Subject: [PATCH] Update documentation for toml::from and toml::into --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 93c0a13..8cd611d 100644 --- a/README.md +++ b/README.md @@ -1091,7 +1091,7 @@ namespace toml template<> struct from { - ext::foo from_toml(const value& v) + static ext::foo from_toml(const value& v) { ext::foo f; f.a = find(v, "a"); @@ -1131,7 +1131,7 @@ template<> struct from { template class M, template class A> - ext::foo from_toml(const basic_value& v) + static ext::foo from_toml(const basic_value& v) { ext::foo f; f.a = find(v, "a"); @@ -1187,7 +1187,7 @@ namespace toml template<> struct into { - 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}}; }