Skip to content
Snippets Groups Projects
Commit ad0c3141 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 9cf448ad
No related branches found
No related tags found
No related merge requests found
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment