11// ----------------------------------------------------------------------------------------------------------------------
22//
3- // toml++ v2.2 .0
3+ // toml++ v2.3 .0
44// https://github.com/marzer/tomlplusplus
55// SPDX-License-Identifier: MIT
66//
@@ -521,7 +521,7 @@ is no longer necessary.
521521#endif
522522
523523#define TOML_LIB_MAJOR 2
524- #define TOML_LIB_MINOR 2
524+ #define TOML_LIB_MINOR 3
525525#define TOML_LIB_PATCH 0
526526
527527#define TOML_LANG_MAJOR 1
@@ -4016,7 +4016,7 @@ TOML_IMPL_NAMESPACE_START
40164016 {
40174017 if (!proxy_instantiated)
40184018 {
4019- auto p = new (&proxy) proxy_type{ raw_->first , *raw_->second .get () };
4019+ auto p = :: new (static_cast < void *>( &proxy) ) proxy_type{ raw_->first , *raw_->second .get () };
40204020 proxy_instantiated = true ;
40214021 return p;
40224022 }
@@ -7201,24 +7201,24 @@ TOML_NAMESPACE_START
72017201 explicit parse_result (toml::table&& tbl) noexcept
72027202 : is_err{ false }
72037203 {
7204- ::new (&storage) toml::table{ std::move (tbl) };
7204+ ::new (static_cast < void *>( &storage) ) toml::table{ std::move (tbl) };
72057205 }
72067206
72077207 TOML_NODISCARD_CTOR
72087208 explicit parse_result (parse_error&& err) noexcept
72097209 : is_err{ true }
72107210 {
7211- ::new (&storage) parse_error{ std::move (err) };
7211+ ::new (static_cast < void *>( &storage) ) parse_error{ std::move (err) };
72127212 }
72137213
72147214 TOML_NODISCARD_CTOR
72157215 parse_result (parse_result&& res) noexcept
72167216 : is_err{ res.is_err }
72177217 {
72187218 if (is_err)
7219- ::new (&storage) parse_error{ std::move (res).error () };
7219+ ::new (static_cast < void *>( &storage) ) parse_error{ std::move (res).error () };
72207220 else
7221- ::new (&storage) toml::table{ std::move (res).table () };
7221+ ::new (static_cast < void *>( &storage) ) toml::table{ std::move (res).table () };
72227222 }
72237223
72247224 parse_result& operator =(parse_result&& rhs) noexcept
@@ -7228,9 +7228,9 @@ TOML_NAMESPACE_START
72287228 destroy ();
72297229 is_err = rhs.is_err ;
72307230 if (is_err)
7231- ::new (&storage) parse_error{ std::move (rhs).error () };
7231+ ::new (static_cast < void *>( &storage) ) parse_error{ std::move (rhs).error () };
72327232 else
7233- ::new (&storage) toml::table{ std::move (rhs).table () };
7233+ ::new (static_cast < void *>( &storage) ) toml::table{ std::move (rhs).table () };
72347234 }
72357235 else
72367236 {
0 commit comments