NeBuild dev
Loading...
Searching...
No Matches
std_new.hpp
Go to the documentation of this file.
1//# This file is a part of toml++ and is subject to the the terms of the MIT license.
2//# Copyright (c) Mark Gillard <mark.gillard@outlook.com.au>
3//# See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text.
4// SPDX-License-Identifier: MIT
5#pragma once
6
7#include "preprocessor.hpp"
9#include <new>
11
12#if (!defined(__apple_build_version__) && TOML_CLANG >= 8) || TOML_GCC >= 7 || TOML_ICC >= 1910 || TOML_MSVC >= 1914
13#define TOML_LAUNDER(x) __builtin_launder(x)
14#elif defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
15#define TOML_LAUNDER(x) std::launder(x)
16#else
17#define TOML_LAUNDER(x) x
18#endif
TOML_ENABLE_WARNINGS
Definition std_new.hpp:10
TOML_DISABLE_WARNINGS
Definition std_new.hpp:8