Skip to content

Commit 78f934f

Browse files
committed
core: force alignment of all instances
1 parent dc6b276 commit 78f934f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

include/eigenpy/alignment.hpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,19 @@ struct referent_storage<const Eigen::Quaternion<Scalar, Options> &> {
7171
} // namespace python
7272
} // namespace boost
7373

74+
namespace boost {
75+
namespace python {
76+
namespace objects {
77+
78+
// Force alignment of instance with value_holder
79+
template <typename Derived>
80+
struct instance<value_holder<Derived> >
81+
: ::eigenpy::aligned_instance<value_holder<Derived> > {};
82+
83+
} // namespace objects
84+
} // namespace python
85+
} // namespace boost
86+
7487
namespace eigenpy {
7588

7689
template <class T>

0 commit comments

Comments
 (0)