1
1
// ----------------------------------------------------------------------------------------------------------------------
2
2
//
3
- // toml++ v2.2 .0
3
+ // toml++ v2.3 .0
4
4
// https://github.com/marzer/tomlplusplus
5
5
// SPDX-License-Identifier: MIT
6
6
//
@@ -521,7 +521,7 @@ is no longer necessary.
521
521
#endif
522
522
523
523
#define TOML_LIB_MAJOR 2
524
- #define TOML_LIB_MINOR 2
524
+ #define TOML_LIB_MINOR 3
525
525
#define TOML_LIB_PATCH 0
526
526
527
527
#define TOML_LANG_MAJOR 1
@@ -4016,7 +4016,7 @@ TOML_IMPL_NAMESPACE_START
4016
4016
{
4017
4017
if (!proxy_instantiated)
4018
4018
{
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 () };
4020
4020
proxy_instantiated = true ;
4021
4021
return p;
4022
4022
}
@@ -7201,24 +7201,24 @@ TOML_NAMESPACE_START
7201
7201
explicit parse_result (toml::table&& tbl) noexcept
7202
7202
: is_err{ false }
7203
7203
{
7204
- ::new (&storage) toml::table{ std::move (tbl) };
7204
+ ::new (static_cast < void *>( &storage) ) toml::table{ std::move (tbl) };
7205
7205
}
7206
7206
7207
7207
TOML_NODISCARD_CTOR
7208
7208
explicit parse_result (parse_error&& err) noexcept
7209
7209
: is_err{ true }
7210
7210
{
7211
- ::new (&storage) parse_error{ std::move (err) };
7211
+ ::new (static_cast < void *>( &storage) ) parse_error{ std::move (err) };
7212
7212
}
7213
7213
7214
7214
TOML_NODISCARD_CTOR
7215
7215
parse_result (parse_result&& res) noexcept
7216
7216
: is_err{ res.is_err }
7217
7217
{
7218
7218
if (is_err)
7219
- ::new (&storage) parse_error{ std::move (res).error () };
7219
+ ::new (static_cast < void *>( &storage) ) parse_error{ std::move (res).error () };
7220
7220
else
7221
- ::new (&storage) toml::table{ std::move (res).table () };
7221
+ ::new (static_cast < void *>( &storage) ) toml::table{ std::move (res).table () };
7222
7222
}
7223
7223
7224
7224
parse_result& operator =(parse_result&& rhs) noexcept
@@ -7228,9 +7228,9 @@ TOML_NAMESPACE_START
7228
7228
destroy ();
7229
7229
is_err = rhs.is_err ;
7230
7230
if (is_err)
7231
- ::new (&storage) parse_error{ std::move (rhs).error () };
7231
+ ::new (static_cast < void *>( &storage) ) parse_error{ std::move (rhs).error () };
7232
7232
else
7233
- ::new (&storage) toml::table{ std::move (rhs).table () };
7233
+ ::new (static_cast < void *>( &storage) ) toml::table{ std::move (rhs).table () };
7234
7234
}
7235
7235
else
7236
7236
{
0 commit comments