We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 554d6ae commit 818550fCopy full SHA for 818550f
include/fastrtps/utils/collections/ResourceLimitedVector.hpp
@@ -95,6 +95,15 @@ class ResourceLimitedVector
95
collection_.reserve(cfg.initial);
96
}
97
98
+ ResourceLimitedVector(
99
+ const ResourceLimitedVector& other)
100
+ : configuration_(other.configuration_)
101
+ , collection_(other.collection_.get_allocator())
102
+ {
103
+ collection_.reserve(other.collection_.capacity());
104
+ collection_.assign(other.collection_.begin(), other.collection_.end());
105
+ }
106
+
107
ResourceLimitedVector& operator = (const ResourceLimitedVector& other)
108
{
109
clear();
0 commit comments