According to the Eigen website, using STL containers on fixed-size vectorizable Eigen types requires the use of an over-aligned allocator. See https://eigen.tuxfamily.org/dox/group__TopicStlContainers.html
Does this apply when creating a tuple of Eigen objects? I haven't seen any code examples that use an allocator with std::tuple.
Below is a concrete example of what I'm trying to do. Is this valid, or am I likely to run into issues with this code?
std::tuple<Eigen::Vector2d, Eigen::Vector2d> foo()
{
Eigen::Vector2d vec1(1, 2);
Eigen::Vector2d vec2(3, 4);
return std::make_tuple(vec1, vec2);
};