Commit 96f3b898 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed nullopt static ocnstant not being compiled in.

It was used but we probably got away thanks to compiler optimizing it out.
parent 100d3ce8
......@@ -138,7 +138,8 @@ set (COMMON_LIB_SRC_FILES
ConfigurationFile.cpp
SourcedParameter.cpp
Timer.cpp
UserIdentity.cpp)
UserIdentity.cpp
optional.cpp)
add_library (ctacommon SHARED
${COMMON_LIB_SRC_FILES})
......
......@@ -23,4 +23,8 @@
#include "optional.hpp"
nullopt_t nullopt{};
namespace cta{
const cta::nullopt_t nullopt{};
}
\ No newline at end of file
......@@ -28,7 +28,7 @@ struct nullopt_t {
nullopt_t() {}
};
extern nullopt_t nullopt;
extern const nullopt_t nullopt;
template <class T> class optional
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment