Skip to content

Commit 73d094a

Browse files
committed
remove unecessary constexpr
1 parent 2083d24 commit 73d094a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

include/dice/template-library/pool_allocator.hpp

+11-11
Original file line numberDiff line numberDiff line change
@@ -60,34 +60,34 @@ namespace dice::template_library {
6060
pool<bucket_sizes...> *pool_;
6161

6262
public:
63-
explicit constexpr pool_allocator(pool<bucket_sizes...> &parent_pool) noexcept
63+
explicit pool_allocator(pool<bucket_sizes...> &parent_pool) noexcept
6464
: pool_{&parent_pool} {
6565
}
6666

67-
constexpr pool_allocator(pool_allocator const &other) noexcept = default;
68-
constexpr pool_allocator(pool_allocator &&other) noexcept = default;
69-
constexpr pool_allocator &operator=(pool_allocator const &other) noexcept = default;
70-
constexpr pool_allocator &operator=(pool_allocator &&other) noexcept = default;
71-
constexpr ~pool_allocator() noexcept = default;
67+
pool_allocator(pool_allocator const &other) noexcept = default;
68+
pool_allocator(pool_allocator &&other) noexcept = default;
69+
pool_allocator &operator=(pool_allocator const &other) noexcept = default;
70+
pool_allocator &operator=(pool_allocator &&other) noexcept = default;
71+
~pool_allocator() noexcept = default;
7272

7373
template<typename U>
74-
constexpr pool_allocator(pool_allocator<U, bucket_sizes...> const &other) noexcept
74+
pool_allocator(pool_allocator<U, bucket_sizes...> const &other) noexcept
7575
: pool_{other.pool_} {
7676
}
7777

78-
constexpr pointer allocate(size_t n) {
78+
pointer allocate(size_t n) {
7979
return static_cast<pointer>(pool_->allocate(sizeof(T) * n));
8080
}
8181

82-
constexpr void deallocate(pointer ptr, size_t n) {
82+
void deallocate(pointer ptr, size_t n) {
8383
pool_->deallocate(ptr, sizeof(T) * n);
8484
}
8585

86-
constexpr pool_allocator select_on_container_copy_construction() const {
86+
pool_allocator select_on_container_copy_construction() const {
8787
return pool_allocator{*pool_};
8888
}
8989

90-
friend constexpr void swap(pool_allocator &lhs, pool_allocator &rhs) noexcept {
90+
friend void swap(pool_allocator &lhs, pool_allocator &rhs) noexcept {
9191
using std::swap;
9292
swap(lhs.pool_, rhs.pool_);
9393
}

0 commit comments

Comments
 (0)