diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-08 15:47:16 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-08 15:47:16 +0100 |
| commit | ddb1cbc831b6d13b985d91022f01e955e24ae871 (patch) | |
| tree | 985c7eda4fafa827eaad88b6b469b0baba791817 /vendor/toml++/impl/std_optional.hpp | |
| parent | 7a469801ecb55fcde0199d4e41b1cec3a17dcb05 (diff) | |
[CHORE] Patching TOML manifest parser to avoid null deref.nebuild-patches-deref
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'vendor/toml++/impl/std_optional.hpp')
| -rw-r--r-- | vendor/toml++/impl/std_optional.hpp | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/vendor/toml++/impl/std_optional.hpp b/vendor/toml++/impl/std_optional.hpp index 6760388..6e988b5 100644 --- a/vendor/toml++/impl/std_optional.hpp +++ b/vendor/toml++/impl/std_optional.hpp @@ -1,7 +1,7 @@ -//# This file is a part of toml++ and is subject to the the terms of the MIT license. -//# Copyright (c) Mark Gillard <mark.gillard@outlook.com.au> -//# See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text. -// SPDX-License-Identifier: MIT +// # This file is a part of toml++ and is subject to the the terms of the MIT license. +// # Copyright (c) Mark Gillard <mark.gillard@outlook.com.au> +// # See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text. +// SPDX-License-Identifier: MIT #pragma once #include "preprocessor.hpp" @@ -11,21 +11,20 @@ TOML_DISABLE_WARNINGS; #endif TOML_ENABLE_WARNINGS; -TOML_NAMESPACE_START -{ +TOML_NAMESPACE_START { #if TOML_HAS_CUSTOM_OPTIONAL_TYPE - template <typename T> - using optional = TOML_OPTIONAL_TYPE<T>; + template <typename T> + using optional = TOML_OPTIONAL_TYPE<T>; #else - /// \brief The 'optional' type used throughout the library. - /// - /// \remarks By default this will be an alias for std::optional, but you can change the optional type - /// used by the library by defining #TOML_OPTIONAL_TYPE. - template <typename T> - using optional = std::optional<T>; + /// \brief The 'optional' type used throughout the library. + /// + /// \remarks By default this will be an alias for std::optional, but you can change the optional + /// type used by the library by defining #TOML_OPTIONAL_TYPE. + template <typename T> + using optional = std::optional<T>; #endif } |
