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 @@ -467,7 +467,10 @@ class limited_allocator {
467
467
TEST_CONSTEXPR_CXX20 pointer allocate (size_type n) { return handle_->template allocate <T>(n); }
468
468
TEST_CONSTEXPR_CXX20 void deallocate (pointer p, size_type n) { handle_->template deallocate <T>(p, n); }
469
469
TEST_CONSTEXPR size_type max_size () const { return N; }
470
- TEST_CONSTEXPR BuffT* getHandle () const { return handle_.get (); }
470
+
471
+ // In C++11, constexpr non-static member functions are implicitly const, but this is no longer the case since C++14.
472
+ TEST_CONSTEXPR_CXX14 BuffT* getHandle () { return handle_.get (); }
473
+ TEST_CONSTEXPR const BuffT* getHandle () const { return handle_.get (); }
471
474
};
472
475
473
476
template <class T , class U , std::size_t N>
You can’t perform that action at this time.
0 commit comments