Fixes #188 ("Build fails when RTTI is disabled")

This commit is contained in:
Ion Gaztañaga
2021-08-08 00:06:01 +02:00
parent aa479c8eee
commit aaa2485ebf
6 changed files with 16 additions and 17 deletions

View File

@@ -166,7 +166,7 @@ void monotonic_buffer_resource::do_deallocate(void* p, std::size_t bytes, std::s
{ (void)p; (void)bytes; (void)alignment; }
bool monotonic_buffer_resource::do_is_equal(const memory_resource& other) const BOOST_NOEXCEPT
{ return this == dynamic_cast<const monotonic_buffer_resource*>(&other); }
{ return this == &other; }
} //namespace pmr {
} //namespace container {