From b9b2ee02ff63aa93bce07ba5209c905e585d7637 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Tue, 2 Jul 2024 15:23:57 +0000 Subject: [PATCH] feat [skip ci]: update single_include --- single_include/toml.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/single_include/toml.hpp b/single_include/toml.hpp index c7de7d7..57ec3d6 100644 --- a/single_include/toml.hpp +++ b/single_include/toml.hpp @@ -5447,6 +5447,10 @@ struct error_info std::string suffix_; // hint or something like that }; +// forward decl +template +class basic_value; + namespace detail { inline error_info make_error_info_rec(error_info e) @@ -5459,6 +5463,10 @@ inline error_info make_error_info_rec(error_info e, std::string s) return e; } +template +error_info make_error_info_rec(error_info e, + const basic_value& v, std::string msg, Ts&& ... tail); + template error_info make_error_info_rec(error_info e, source_location loc, std::string msg, Ts&& ... tail) @@ -7588,12 +7596,16 @@ operator>=(const basic_value& lhs, const basic_value& rhs) } // error_info helper +namespace detail +{ template error_info make_error_info_rec(error_info e, const basic_value& v, std::string msg, Ts&& ... tail) { return make_error_info_rec(std::move(e), v.location(), std::move(msg), std::forward(tail)...); } +} // detail + template error_info make_error_info( std::string title, const basic_value& v, std::string msg, Ts&& ... tail)