diff --git a/include/eigenpy/memory.hpp b/include/eigenpy/memory.hpp index 1a3c8cbf71f08f085e761d80d5de1d91e03cfc94..cbd8c482d291f79d6fdb9dd23bd92e2ca1fd4ffb 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__