SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::core::VecIdAlignFix Class Reference

#include <VecId.h>

Inheritance diagram for sofa::core::VecIdAlignFix:

Detailed Description

This class is only here as fix for a VC2010 compiler otherwise padding TVecId<V_ALL,?> with 4 more bytes than TVecId<?,?>, probably due to some weird rule requiring to have distinct base pointers with multiple inheritance that's imo wrongly applied for base classes without data members, and hopefully should not make anything worse for other compilers.

Just in case, we have a static size assertion at the end of the file, so you will know if there is a problem.