From 987a2632d0db4f802a4866e95403d6abb2e40914 Mon Sep 17 00:00:00 2001 From: Rustam Gamidov Date: Wed, 25 Mar 2026 09:27:03 +0200 Subject: [PATCH] Use BOOST_CONSTEXPR_OR_CONST in porting::none This allows to follow BOOST_NO_CXX11_CONSTEXPR compiler flags Found on QNX 7.0 builds Relates-To: HERESUP-62587 Signed-off-by: Rustam Gamidov --- olp-cpp-sdk-core/include/olp/core/porting/optional.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/olp-cpp-sdk-core/include/olp/core/porting/optional.h b/olp-cpp-sdk-core/include/olp/core/porting/optional.h index 3cfa5049d..a0c4334a3 100644 --- a/olp-cpp-sdk-core/include/olp/core/porting/optional.h +++ b/olp-cpp-sdk-core/include/olp/core/porting/optional.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2025 HERE Europe B.V. + * Copyright (C) 2025-2026 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -61,7 +61,7 @@ namespace porting { template using optional = boost::optional; -constexpr auto none = boost::none; +BOOST_CONSTEXPR_OR_CONST auto none = boost::none; template constexpr typename optional::reference_const_type value_or(