Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Feb 17, 2024
1 parent c553258 commit d02a8d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/loki/common/pddl/persistent_factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ class PersistentFactory {
auto element = HolderType(std::move(SubType(identifier, std::forward<Args>(args)...)));
bool overwrite_last_element = (identifier == m_persistent_vector.size() - 1);
if (overwrite_last_element) {
std::cout << "overwrite" << std::endl;
element_ptr = &(m_persistent_vector[identifier] = std::move(element));
} else {
std::cout << "push_back" << std::endl;
element_ptr = &(m_persistent_vector.push_back(std::move(element)));
}
std::cout << "element_ptr: " << element_ptr << std::endl;
assert(element_ptr);
/* Test for uniqueness */
auto it = m_uniqueness_set.find(element_ptr);
Expand Down

0 comments on commit d02a8d1

Please sign in to comment.