Skip to content

Commit

Permalink
I decided to use the one-array version (thin_sherwood_map) after all …
Browse files Browse the repository at this point in the history
…because it's faster for successful lookups than the two-array version (fat_sherwood_map). And I want lookups to be fast.
  • Loading branch information
skarupke committed May 31, 2014
1 parent a1ac6ca commit c430c1d
Show file tree
Hide file tree
Showing 10 changed files with 1,225 additions and 1,210 deletions.
2 changes: 1 addition & 1 deletion boost_test/exception/containers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ typedef thin_sherwood_map<
test::exception::hash,
test::exception::equal_to,
test::exception::allocator2<test::exception::object> > test_map;
typedef thin_sherwood_map<
typedef fat_sherwood_map<
test::exception::object,
test::exception::object,
test::exception::hash,
Expand Down
4 changes: 4 additions & 0 deletions boost_test/objects/exception.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,10 @@ namespace exception
test::detail::tracker().track_construct((void*) p, sizeof(T), tag_);
}
#endif
void construct(T* p, T && to_move) {
new(p) T(boost::move(to_move));
test::detail::tracker().track_construct((void*) p, sizeof(T), tag_);
}

void destroy(T* p) {
test::detail::tracker().track_destroy((void*) p, sizeof(T), tag_);
Expand Down
Loading

0 comments on commit c430c1d

Please sign in to comment.