diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-09-24 18:01:17 +0200 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-09-24 18:01:17 +0200 |
commit | 2c083ace3ecec6c2894f41d96d6c2b7a48dff7e2 (patch) | |
tree | b174ec96745d7f34d0820e0e1295361de11941fb /unsupported/test/cxx11_tensor_thread_pool.cpp | |
parent | 626942d9ddcc17c21c2d79a690537e54237275bc (diff) |
Provide EIGEN_OVERRIDE and EIGEN_FINAL macros to mark virtual function overrides
Diffstat (limited to 'unsupported/test/cxx11_tensor_thread_pool.cpp')
-rw-r--r-- | unsupported/test/cxx11_tensor_thread_pool.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<TestAllocator*>(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<TestAllocator*>(this)->dealloc_count_++; internal::aligned_free(buffer); } |