summaryrefslogtreecommitdiff
path: root/boost/geometry/index/detail/rtree/node/variant_static.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/index/detail/rtree/node/variant_static.hpp')
-rw-r--r--boost/geometry/index/detail/rtree/node/variant_static.hpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/boost/geometry/index/detail/rtree/node/variant_static.hpp b/boost/geometry/index/detail/rtree/node/variant_static.hpp
index c30998d683..c1612b9853 100644
--- a/boost/geometry/index/detail/rtree/node/variant_static.hpp
+++ b/boost/geometry/index/detail/rtree/node/variant_static.hpp
@@ -2,7 +2,11 @@
//
// R-tree nodes based on Boost.Variant, storing static-size containers
//
-// Copyright (c) 2011-2018 Adam Wulkiewicz, Lodz, Poland.
+// Copyright (c) 2011-2023 Adam Wulkiewicz, Lodz, Poland.
+//
+// This file was modified by Oracle on 2021.
+// Modifications copyright (c) 2021 Oracle and/or its affiliates.
+// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
//
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
@@ -11,6 +15,9 @@
#ifndef BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_VARIANT_STATIC_HPP
#define BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_VARIANT_STATIC_HPP
+#include <boost/geometry/index/detail/rtree/node/variant_dynamic.hpp>
+#include <boost/geometry/index/detail/varray.hpp>
+
namespace boost { namespace geometry { namespace index {
namespace detail { namespace rtree {
@@ -121,23 +128,21 @@ public:
: node_allocator_type(alloc)
{}
- inline allocators(BOOST_FWD_REF(allocators) a)
- : node_allocator_type(boost::move(a.node_allocator()))
+ inline allocators(allocators&& a)
+ : node_allocator_type(std::move(a.node_allocator()))
{}
- inline allocators & operator=(BOOST_FWD_REF(allocators) a)
+ inline allocators & operator=(allocators&& a)
{
- node_allocator() = boost::move(a.node_allocator());
+ node_allocator() = std::move(a.node_allocator());
return *this;
}
-#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
inline allocators & operator=(allocators const& a)
{
node_allocator() = a.node_allocator();
return *this;
}
-#endif
void swap(allocators & a)
{