We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 903b653 + e472044 commit 133ec0dCopy full SHA for 133ec0d
1 file changed
source/string_pool.cpp
@@ -13,9 +13,7 @@
13
#include <vector>
14
15
#include <adobe/algorithm/copy.hpp>
16
-#include <adobe/algorithm/for_each.hpp>
17
#include <adobe/closed_hash.hpp>
18
-#include <adobe/functional.hpp>
19
#include <adobe/name.hpp>
20
#include <adobe/string.hpp>
21
@@ -43,7 +41,11 @@ class string_pool_t : boost::noncopyable {
43
41
explicit string_pool_t(std::size_t pool_size = default_pool_size_k)
44
42
: pool_size_m(pool_size), next_m(NULL), end_m(NULL) {}
45
46
- ~string_pool_t() { adobe::for_each(pool_m, adobe::delete_ptr()); }
+ ~string_pool_t() {
+ for (char* pool : pool_m) {
+ ::operator delete(pool);
47
+ }
48
49
50
const char* add(const char* ident) {
51
std::size_t n = std::strlen(ident);
0 commit comments