Skip to content

Commit 0f37983

Browse files
committed
Entry should be non copyable
1 parent bb90c6b commit 0f37983

2 files changed

Lines changed: 2 additions & 23 deletions

File tree

include/behaviortree_cpp/blackboard.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ class Blackboard
6060
{}
6161

6262
~Entry() = default;
63-
Entry(const Entry& other);
64-
Entry& operator=(const Entry& other);
63+
Entry(const Entry&) = delete;
64+
Entry& operator=(const Entry&) = delete;
6565
Entry(Entry&&) = delete;
6666
Entry& operator=(Entry&&) = delete;
6767
};

src/blackboard.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -307,27 +307,6 @@ void ImportBlackboardFromJSON(const nlohmann::json& json, Blackboard& blackboard
307307
}
308308
}
309309

310-
Blackboard::Entry::Entry(const Entry& other)
311-
: value(other.value)
312-
, info(other.info)
313-
, string_converter(other.string_converter)
314-
, sequence_id(other.sequence_id)
315-
, stamp(other.stamp)
316-
{}
317-
318-
Blackboard::Entry& Blackboard::Entry::operator=(const Entry& other)
319-
{
320-
if(this != &other)
321-
{
322-
value = other.value;
323-
info = other.info;
324-
string_converter = other.string_converter;
325-
sequence_id = other.sequence_id;
326-
stamp = other.stamp;
327-
}
328-
return *this;
329-
}
330-
331310
Blackboard* BT::Blackboard::rootBlackboard()
332311
{
333312
auto bb = static_cast<const Blackboard&>(*this).rootBlackboard();

0 commit comments

Comments
 (0)