We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22417ec commit 2f2f79aCopy full SHA for 2f2f79a
libcxx/test/support/test_allocator.h
@@ -467,7 +467,8 @@ class limited_allocator {
467
TEST_CONSTEXPR_CXX20 pointer allocate(size_type n) { return handle_->template allocate<T>(n); }
468
TEST_CONSTEXPR_CXX20 void deallocate(pointer p, size_type n) { handle_->template deallocate<T>(p, n); }
469
TEST_CONSTEXPR size_type max_size() const { return N; }
470
- TEST_CONSTEXPR BuffT* getHandle() const { return handle_.get(); }
+ TEST_CONSTEXPR const BuffT* getHandle() const { return handle_.get(); }
471
+ TEST_CONSTEXPR BuffT* getHandle() { return handle_.get(); }
472
};
473
474
template <class T, class U, std::size_t N>
0 commit comments