From 0104a9ff761104f6011bc31e7ba8551702eb4f81 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Sun, 8 Jan 2023 12:04:19 +0100 Subject: [PATCH] memory: set deprecated --- include/eigenpy/memory.hpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/include/eigenpy/memory.hpp b/include/eigenpy/memory.hpp index 1a3c8cbf..cbd8c482 100644 --- a/include/eigenpy/memory.hpp +++ b/include/eigenpy/memory.hpp @@ -3,25 +3,21 @@ * Copyright 2018-2023, INRIA */ +#include "eigenpy/fwd.hpp" + +EIGENPY_DEPRECATED_FILE( + "This header file is now useless and should not be included anymore.") + #ifndef __eigenpy_memory_hpp__ #define __eigenpy_memory_hpp__ -#include "eigenpy/fwd.hpp" - /** * This section contains a convenience MACRO which allows an easy specialization * of Boost Python Object allocator for struct data types containing Eigen * objects and requiring strict alignment. */ -#define EIGENPY_DEFINE_STRUCT_ALLOCATOR_SPECIALIZATION(...) \ - namespace boost { \ - namespace python { \ - namespace objects { \ - template <> \ - struct instance<value_holder<__VA_ARGS__> > \ - : ::eigenpy::aligned_instance<value_holder<__VA_ARGS__> > {}; \ - } \ - } \ - } +#define EIGENPY_DEFINE_STRUCT_ALLOCATOR_SPECIALIZATION(...) \ + EIGENPY_DEPRECATED_MACRO(EIGENPY_DEFINE_STRUCT_ALLOCATOR_SPECIALIZATION(), \ + "it is no more needed.") #endif // __eigenpy_memory_hpp__ -- GitLab