diff --git a/toml/get.hpp b/toml/get.hpp index ed211b0..c0e47bb 100644 --- a/toml/get.hpp +++ b/toml/get.hpp @@ -113,7 +113,7 @@ inline std::string get(value&& v) template::value, std::nullptr_t>::type = nullptr> -inline T get(value& v) +inline T get(const value& v) { return std::chrono::duration_cast( std::chrono::nanoseconds(v.cast())); @@ -125,7 +125,7 @@ inline T get(value& v) template::value, std::nullptr_t>::type = nullptr> -inline T get(value& v) +inline T get(const value& v) { switch(v.type()) {