[MSVC 19] error C2259: 'pmr::allocator::holder_mr<void *,bool>': cannot instantiate abstract class.

This commit is contained in:
mutouyun 2023-09-09 11:22:30 +08:00
parent 2ed0614ec8
commit 6020739552

View File

@ -54,6 +54,10 @@ class LIBIMP_EXPORT allocator {
public: public:
holder_mr(MR *p_mr) noexcept holder_mr(MR *p_mr) noexcept
: res_(p_mr) {} : res_(p_mr) {}
// [MSVC 19] error C2259: 'pmr::allocator::holder_mr<void *,bool>': cannot instantiate abstract class.
void *alloc(std::size_t s, std::size_t a) const override { return nullptr; }
void dealloc(void *p, std::size_t s, std::size_t a) const override {}
}; };
/** /**