Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
96f3b898
Commit
96f3b898
authored
Sep 27, 2018
by
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
common/CMakeLists.txt
View file @
96f3b898
...
...
@@ -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
}
)
...
...
common/optional.cpp
View file @
96f3b898
...
...
@@ -23,4 +23,8 @@
#include
"optional.hpp"
nullopt_t
nullopt
{};
namespace
cta
{
const
cta
::
nullopt_t
nullopt
{};
}
\ No newline at end of file
common/optional.hpp
View file @
96f3b898
...
...
@@ -28,7 +28,7 @@ struct nullopt_t {
nullopt_t
()
{}
};
extern
nullopt_t
nullopt
;
extern
const
nullopt_t
nullopt
;
template
<
class
T
>
class
optional
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment