From 7510f32ff756f36bff3b05785d1e375e5867050d Mon Sep 17 00:00:00 2001 From: Alexander Karzhenkov Date: Sun, 8 Jan 2023 12:00:04 +0500 Subject: [PATCH] Add comment about a trick for GCC8.1 --- include/nlohmann/optional.hpp | 2 +- single_include/nlohmann/json.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/optional.hpp b/include/nlohmann/optional.hpp index f39d2d7ba..563897625 100644 --- a/include/nlohmann/optional.hpp +++ b/include/nlohmann/optional.hpp @@ -65,7 +65,7 @@ class optional is_base_constructible_from >; - struct noexcept_fix_t {}; + struct noexcept_fix_t {}; // trick for GCC8.1 (see default constructor) base_type base_value; diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index bce245c98..a02d2a6c5 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -4657,7 +4657,7 @@ class optional is_base_constructible_from >; - struct noexcept_fix_t {}; + struct noexcept_fix_t {}; // trick for GCC8.1 (see default constructor) base_type base_value;