diff --git a/src/utils/optional_fwd.hpp b/src/utils/optional_fwd.hpp index 3f1f56962c9..f77a8eeb20a 100644 --- a/src/utils/optional_fwd.hpp +++ b/src/utils/optional_fwd.hpp @@ -33,7 +33,7 @@ using std::nullopt; using boost::optional; // Create a new nullopt object equivalent to boost::none to match the STL interface -constexpr boost::none_t nullopt; +static const boost::none_t nullopt; #endif } // end namespace utils