From 2c083ace3ecec6c2894f41d96d6c2b7a48dff7e2 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Mon, 24 Sep 2018 18:01:17 +0200 Subject: Provide EIGEN_OVERRIDE and EIGEN_FINAL macros to mark virtual function overrides --- unsupported/test/cxx11_tensor_thread_pool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unsupported/test/cxx11_tensor_thread_pool.cpp') diff --git a/unsupported/test/cxx11_tensor_thread_pool.cpp b/unsupported/test/cxx11_tensor_thread_pool.cpp index 6d8e58214..95fbdcf93 100644 --- a/unsupported/test/cxx11_tensor_thread_pool.cpp +++ b/unsupported/test/cxx11_tensor_thread_pool.cpp @@ -18,12 +18,12 @@ using Eigen::Tensor; class TestAllocator : public Allocator { public: - ~TestAllocator() override {} - EIGEN_DEVICE_FUNC void* allocate(size_t num_bytes) const override { + ~TestAllocator() EIGEN_OVERRIDE {} + EIGEN_DEVICE_FUNC void* allocate(size_t num_bytes) const EIGEN_OVERRIDE { const_cast(this)->alloc_count_++; return internal::aligned_malloc(num_bytes); } - EIGEN_DEVICE_FUNC void deallocate(void* buffer) const override { + EIGEN_DEVICE_FUNC void deallocate(void* buffer) const EIGEN_OVERRIDE { const_cast(this)->dealloc_count_++; internal::aligned_free(buffer); } -- cgit v1.2.3