Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
leemaguire committed Oct 16, 2023
1 parent 69c616a commit 20f7a80
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/cpprealm/experimental/managed_set.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,8 @@ namespace realm::experimental {
}
[[nodiscard]] std::set<T> detach() const {
auto set = realm::internal::bridge::set(*m_realm, *m_obj, m_key);
using U = typename internal::type_info::type_info<T>::internal_type;

size_t count = set.size();
if (count == 0)
return std::set<T>();

auto ret = std::set<T>();
for(size_t i = 0; i < count; i++) {
for(size_t i = 0; i < set.size(); i++) {
ret.insert(deserialize<T>(set.get_any(i)));
}
return ret;
Expand Down

0 comments on commit 20f7a80

Please sign in to comment.