Skip to content

Commit d95a015

Browse files
committed
Deprecate Balckboard::clear(). Issue #794
1 parent a4ad265 commit d95a015

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/behaviortree_cpp/blackboard.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ class Blackboard
9595

9696
[[nodiscard]] std::vector<StringView> getKeys() const;
9797

98-
void clear();
98+
[[deprecated("This command is unsafe. Consider using Backup/Restore instead")]] void
99+
clear();
99100

100101
[[deprecated("Use getAnyLocked to access safely an Entry")]] std::recursive_mutex&
101102
entryMutex() const;

0 commit comments

Comments
 (0)