Skip to content

Commit b400ee0

Browse files
Use BOOST_CONSTEXPR_OR_CONST in porting::none (#1687)
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 <ext-rustam.gamidov@here.com>
1 parent 04c9194 commit b400ee0

File tree

1 file changed

+2
-2
lines changed
  • olp-cpp-sdk-core/include/olp/core/porting

1 file changed

+2
-2
lines changed

olp-cpp-sdk-core/include/olp/core/porting/optional.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2025 HERE Europe B.V.
2+
* Copyright (C) 2025-2026 HERE Europe B.V.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -61,7 +61,7 @@ namespace porting {
6161
template <typename T>
6262
using optional = boost::optional<T>;
6363

64-
constexpr auto none = boost::none;
64+
BOOST_CONSTEXPR_OR_CONST auto none = boost::none;
6565

6666
template <typename T>
6767
constexpr typename optional<T>::reference_const_type value_or(

0 commit comments

Comments
 (0)