Skip to content

Commit 4face4d

Browse files
committed
release 2.3.0
1 parent 63ec393 commit 4face4d

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ You'll find some more code examples in the `examples` directory, and plenty more
9898
2. `#include <toml++/toml.h>`
9999
100100
### Conan
101-
Add `tomlplusplus/2.2.0` to your conanfile.<br>
101+
Add `tomlplusplus/2.3.0` to your conanfile.<br>
102102
This adds the single-header version by default, but you can specify the regular version using `"multiple_headers": True`.
103103
104104
### DDS
105105
Add `tomlpp` to your `package.json5`, e.g.:
106106
```
107107
depends: [
108-
'tomlpp^2.2.0',
108+
'tomlpp^2.3.0',
109109
]
110110
```
111111
> ℹ _[What is DDS?](https://dds.pizza/)_

docs/main_page.dox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@
437437
//////////////////////////////////
438438
///
439439
/// \subsection mainpage-adding-lib-conan Conan
440-
/// Add `tomlplusplus/2.2.0` to your conanfile. This adds the single-header version by default, but you can specify the
440+
/// Add `tomlplusplus/2.3.0` to your conanfile. This adds the single-header version by default, but you can specify the
441441
/// regular version using `"multiple_headers": True`.
442442
///
443443
//////////////////////////////////
@@ -446,7 +446,7 @@
446446
/// Add `tomlpp` to your `package.json5`, e.g.:
447447
/// \bash
448448
/// depends: [
449-
/// 'tomlpp^2.2.0',
449+
/// 'tomlpp^2.3.0',
450450
/// ]
451451
/// \ebash
452452
///

include/toml++/toml_parser.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ TOML_NAMESPACE_START
155155
explicit parse_result(toml::table&& tbl) noexcept
156156
: is_err{ false }
157157
{
158-
::new (&storage) toml::table{ std::move(tbl) };
158+
::new (static_cast<void*>(&storage)) toml::table{ std::move(tbl) };
159159
}
160160

161161
TOML_NODISCARD_CTOR
162162
explicit parse_result(parse_error&& err) noexcept
163163
: is_err{ true }
164164
{
165-
::new (&storage) parse_error{ std::move(err) };
165+
::new (static_cast<void*>(&storage)) parse_error{ std::move(err) };
166166
}
167167

168168
/// \brief Move constructor.
@@ -171,9 +171,9 @@ TOML_NAMESPACE_START
171171
: is_err{ res.is_err }
172172
{
173173
if (is_err)
174-
::new (&storage) parse_error{ std::move(res).error() };
174+
::new (static_cast<void*>(&storage)) parse_error{ std::move(res).error() };
175175
else
176-
::new (&storage) toml::table{ std::move(res).table() };
176+
::new (static_cast<void*>(&storage)) toml::table{ std::move(res).table() };
177177
}
178178

179179
/// \brief Move-assignment operator.
@@ -184,9 +184,9 @@ TOML_NAMESPACE_START
184184
destroy();
185185
is_err = rhs.is_err;
186186
if (is_err)
187-
::new (&storage) parse_error{ std::move(rhs).error() };
187+
::new (static_cast<void*>(&storage)) parse_error{ std::move(rhs).error() };
188188
else
189-
::new (&storage) toml::table{ std::move(rhs).table() };
189+
::new (static_cast<void*>(&storage)) toml::table{ std::move(rhs).table() };
190190
}
191191
else
192192
{

include/toml++/toml_table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ TOML_IMPL_NAMESPACE_START
3939
{
4040
if (!proxy_instantiated)
4141
{
42-
auto p = new (&proxy) proxy_type{ raw_->first, *raw_->second.get() };
42+
auto p = ::new (static_cast<void*>(&proxy)) proxy_type{ raw_->first, *raw_->second.get() };
4343
proxy_instantiated = true;
4444
return p;
4545
}

include/toml++/toml_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#pragma once
77

88
#define TOML_LIB_MAJOR 2
9-
#define TOML_LIB_MINOR 2
9+
#define TOML_LIB_MINOR 3
1010
#define TOML_LIB_PATCH 0
1111

1212
#define TOML_LANG_MAJOR 1

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(
22
'tomlplusplus',
33
'cpp',
4-
version : '2.2.0',
4+
version : '2.3.0',
55
meson_version : '>=0.53.0',
66
license : 'MIT',
77
default_options : [ # https://mesonbuild.com/Builtin-options.html

toml.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

Comments
 (0)