File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -477,7 +477,10 @@ class limited_allocator {
477
477
TEST_CONSTEXPR_CXX20 pointer allocate (size_type n) { return handle_->template allocate <T>(n); }
478
478
TEST_CONSTEXPR_CXX20 void deallocate (pointer p, size_type n) { handle_->template deallocate <T>(p, n); }
479
479
TEST_CONSTEXPR size_type max_size () const { return N; }
480
- TEST_CONSTEXPR BuffT* getHandle () const { return handle_.get (); }
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 (); }
483
+ TEST_CONSTEXPR const BuffT* getHandle () const { return handle_.get (); }
481
484
};
482
485
483
486
template <class T , class U , std::size_t N>
You can’t perform that action at this time.
0 commit comments