From 20ba57e389ba23329da6330433fc3fbdecd6b393 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 20 Mar 2019 00:37:13 +0900 Subject: [PATCH] fix: add missing const specifier to some of get()s --- toml/get.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) {