Skip to content

Commit a51a2db

Browse files
winner245ldionne
authored andcommitted
Provide only a const version and run required clang-format
1 parent 3e55daf commit a51a2db

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

libcxx/test/support/test_allocator.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,6 @@ class limited_allocator {
477477
TEST_CONSTEXPR_CXX20 pointer allocate(size_type n) { return handle_->template allocate<T>(n); }
478478
TEST_CONSTEXPR_CXX20 void deallocate(pointer p, size_type n) { handle_->template deallocate<T>(p, n); }
479479
TEST_CONSTEXPR size_type max_size() const { return N; }
480-
481-
// In C++11, constexpr non-static member functions are implicitly const, but this is no longer the case since C++14.
482-
TEST_CONSTEXPR_CXX14 BuffT* getHandle() { return handle_.get(); }
483480
TEST_CONSTEXPR const BuffT* getHandle() const { return handle_.get(); }
484481
};
485482

0 commit comments

Comments
 (0)