// This file is a part of toml++ and is subject to the the terms of the MIT license. // Copyright (c) 2019-2020 Mark Gillard // See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text. // SPDX-License-Identifier: MIT #include "settings.h" #if !TOML_ALL_INLINE #define TOML_IMPLEMENTATION #endif #if USE_TARTANLLAMA_OPTIONAL #if __has_include() #include #else #error TartanLlama/optional is missing! You probably need to fetch submodules ("git submodule update --init extern/tloptional") #endif #endif #if USE_SINGLE_HEADER #include "../toml.hpp" #else #include "../include/toml++/toml.h" #endif #if TOML_COMPILER_EXCEPTIONS != TOML_EXCEPTIONS #error TOML_EXCEPTIONS does not match TOML_COMPILER_EXCEPTIONS (default behaviour should be to match) #endif namespace toml { using std::declval; using std::is_same_v; static_assert(is_same_v().ref()), double&>); static_assert(is_same_v().ref()), double&&>); static_assert(is_same_v().ref()), const double&>); static_assert(is_same_v().ref>()), double&>); static_assert(is_same_v().ref>()), double&&>); static_assert(is_same_v().ref>()), const double&>); static_assert(is_same_v().ref()), table&>); static_assert(is_same_v().ref
()), table&&>); static_assert(is_same_v().ref
()), const table&>); static_assert(is_same_v().ref()), array&>); static_assert(is_same_v().ref()), array&&>); static_assert(is_same_v().ref()), const array&>); static_assert(is_same_v>().ref()), double&>); static_assert(is_same_v>().ref()), const double&>); static_assert(is_same_v>().ref>()), double&>); static_assert(is_same_v>().ref>()), const double&>); static_assert(is_same_v>().ref
()), table&>); static_assert(is_same_v>().ref
()), const table&>); static_assert(is_same_v>().ref()), array&>); static_assert(is_same_v>().ref()), const array&>); }