diff --git a/include/toml++/impl/array.hpp b/include/toml++/impl/array.hpp index ad793794..09fd0db9 100644 --- a/include/toml++/impl/array.hpp +++ b/include/toml++/impl/array.hpp @@ -418,11 +418,11 @@ TOML_NAMESPACE_START TOML_EXPORTED_MEMBER_FUNCTION bool is_homogeneous(node_type ntype) const noexcept final; - TOML_PURE_GETTER + TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION bool is_homogeneous(node_type ntype, node*& first_nonmatch) noexcept final; - TOML_PURE_GETTER + TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION bool is_homogeneous(node_type ntype, const node*& first_nonmatch) const noexcept final; @@ -1555,8 +1555,8 @@ TOML_NAMESPACE_START { using raw_elem_type = impl::remove_cvref; using elem_type = std::conditional_t, // - impl::emplaced_type_of, - raw_elem_type>; + impl::emplaced_type_of, + raw_elem_type>; using type = impl::remove_cvref>; static_assert(impl::is_native || impl::is_one_of, @@ -1660,8 +1660,8 @@ TOML_NAMESPACE_START { using raw_elem_type = impl::remove_cvref; using elem_type = std::conditional_t, // - impl::emplaced_type_of, - raw_elem_type>; + impl::emplaced_type_of, + raw_elem_type>; static constexpr auto moving_node_ptr = std::is_same_v // && sizeof...(Args) == 1u // diff --git a/include/toml++/impl/array.inl b/include/toml++/impl/array.inl index a3c62434..d5d0f0fe 100644 --- a/include/toml++/impl/array.inl +++ b/include/toml++/impl/array.inl @@ -157,7 +157,7 @@ TOML_NAMESPACE_START return true; } - TOML_PURE_GETTER + TOML_NODISCARD TOML_EXTERNAL_LINKAGE bool array::is_homogeneous(node_type ntype, node * &first_nonmatch) noexcept { @@ -179,7 +179,7 @@ TOML_NAMESPACE_START return true; } - TOML_PURE_GETTER + TOML_NODISCARD TOML_EXTERNAL_LINKAGE bool array::is_homogeneous(node_type ntype, const node*& first_nonmatch) const noexcept { diff --git a/include/toml++/impl/table.inl b/include/toml++/impl/table.inl index 01cba016..d59d7b67 100644 --- a/include/toml++/impl/table.inl +++ b/include/toml++/impl/table.inl @@ -126,7 +126,7 @@ TOML_NAMESPACE_START return true; } - TOML_PURE_GETTER + TOML_NODISCARD TOML_EXTERNAL_LINKAGE bool table::is_homogeneous(node_type ntype, node * &first_nonmatch) noexcept { @@ -149,7 +149,7 @@ TOML_NAMESPACE_START return true; } - TOML_PURE_GETTER + TOML_NODISCARD TOML_EXTERNAL_LINKAGE bool table::is_homogeneous(node_type ntype, const node*& first_nonmatch) const noexcept { diff --git a/toml.hpp b/toml.hpp index 159df9da..1bb9d665 100644 --- a/toml.hpp +++ b/toml.hpp @@ -6378,11 +6378,11 @@ TOML_NAMESPACE_START TOML_EXPORTED_MEMBER_FUNCTION bool is_homogeneous(node_type ntype) const noexcept final; - TOML_PURE_GETTER + TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION bool is_homogeneous(node_type ntype, node*& first_nonmatch) noexcept final; - TOML_PURE_GETTER + TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION bool is_homogeneous(node_type ntype, const node*& first_nonmatch) const noexcept final; @@ -7067,8 +7067,8 @@ TOML_NAMESPACE_START { using raw_elem_type = impl::remove_cvref; using elem_type = std::conditional_t, // - impl::emplaced_type_of, - raw_elem_type>; + impl::emplaced_type_of, + raw_elem_type>; using type = impl::remove_cvref>; static_assert(impl::is_native || impl::is_one_of, @@ -7105,8 +7105,8 @@ TOML_NAMESPACE_START { using raw_elem_type = impl::remove_cvref; using elem_type = std::conditional_t, // - impl::emplaced_type_of, - raw_elem_type>; + impl::emplaced_type_of, + raw_elem_type>; static constexpr auto moving_node_ptr = std::is_same_v // && sizeof...(Args) == 1u // @@ -11859,7 +11859,7 @@ TOML_NAMESPACE_START return true; } - TOML_PURE_GETTER + TOML_NODISCARD TOML_EXTERNAL_LINKAGE bool array::is_homogeneous(node_type ntype, node * &first_nonmatch) noexcept { @@ -11881,7 +11881,7 @@ TOML_NAMESPACE_START return true; } - TOML_PURE_GETTER + TOML_NODISCARD TOML_EXTERNAL_LINKAGE bool array::is_homogeneous(node_type ntype, const node*& first_nonmatch) const noexcept { @@ -12214,7 +12214,7 @@ TOML_NAMESPACE_START return true; } - TOML_PURE_GETTER + TOML_NODISCARD TOML_EXTERNAL_LINKAGE bool table::is_homogeneous(node_type ntype, node * &first_nonmatch) noexcept { @@ -12237,7 +12237,7 @@ TOML_NAMESPACE_START return true; } - TOML_PURE_GETTER + TOML_NODISCARD TOML_EXTERNAL_LINKAGE bool table::is_homogeneous(node_type ntype, const node*& first_nonmatch) const noexcept {