Skip to content

Commit 0104a9f

Browse files
committed
memory: set deprecated
1 parent 78f934f commit 0104a9f

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

include/eigenpy/memory.hpp

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,21 @@
33
* Copyright 2018-2023, INRIA
44
*/
55

6+
#include "eigenpy/fwd.hpp"
7+
8+
EIGENPY_DEPRECATED_FILE(
9+
"This header file is now useless and should not be included anymore.")
10+
611
#ifndef __eigenpy_memory_hpp__
712
#define __eigenpy_memory_hpp__
813

9-
#include "eigenpy/fwd.hpp"
10-
1114
/**
1215
* This section contains a convenience MACRO which allows an easy specialization
1316
* of Boost Python Object allocator for struct data types containing Eigen
1417
* objects and requiring strict alignment.
1518
*/
16-
#define EIGENPY_DEFINE_STRUCT_ALLOCATOR_SPECIALIZATION(...) \
17-
namespace boost { \
18-
namespace python { \
19-
namespace objects { \
20-
template <> \
21-
struct instance<value_holder<__VA_ARGS__> > \
22-
: ::eigenpy::aligned_instance<value_holder<__VA_ARGS__> > {}; \
23-
} \
24-
} \
25-
}
19+
#define EIGENPY_DEFINE_STRUCT_ALLOCATOR_SPECIALIZATION(...) \
20+
EIGENPY_DEPRECATED_MACRO(EIGENPY_DEFINE_STRUCT_ALLOCATOR_SPECIALIZATION(), \
21+
"it is no more needed.")
2622

2723
#endif // __eigenpy_memory_hpp__

0 commit comments

Comments
 (0)