Skip to content

Commit

Permalink
Make any.hpp publicly available for external plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
tribal-tec committed Aug 27, 2019
1 parent 955705a commit bb3d77c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion brayns/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ set(BRAYNSCOMMON_SOURCES
)

set(BRAYNSCOMMON_PUBLIC_HEADERS
any.hpp
ActionInterface.h
BaseObject.h
ImageManager.h
Expand Down Expand Up @@ -53,14 +54,14 @@ set(BRAYNSCOMMON_PUBLIC_HEADERS
transferFunction/TransferFunction.h
types.h
utils/enumUtils.h
utils/filesystem.h
utils/imageUtils.h
utils/stringUtils.h
utils/utils.h
)

set(BRAYNSCOMMON_HEADERS
utils/DynamicLib.h
utils/filesystem.h
utils/base64/base64.h
)

Expand Down
6 changes: 3 additions & 3 deletions brayns/common/PropertyMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include <brayns/common/types.h>
// NOTE: Replace with std::any when upgrading to c++17
#include <deps/any.hpp>
#include <brayns/common/any.hpp>

#include <algorithm>
#include <functional>
Expand Down Expand Up @@ -284,8 +284,8 @@ class PropertyMap
// std::vector move constructor is not noexcept until C++17, if we want
// this class to be movable we have to do it by hand.
PropertyMap(PropertyMap&& other) noexcept
: _name(std::move(other._name))
, _properties(std::move(other._properties))
: _name(std::move(other._name)),
_properties(std::move(other._properties))
{
}
// Assignment operator valid for both copy and move assignment.
Expand Down
3 changes: 3 additions & 0 deletions deps/any.hpp → brayns/common/any.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// clang-format off
//
// Implementation of N4562 std::experimental::any (merged into C++17) for C++11 compilers.
//
Expand Down Expand Up @@ -470,3 +471,5 @@ namespace std
}

#endif

// clang-format on

0 comments on commit bb3d77c

Please sign in to comment.