Replace EIGEN_STATIC_ASSERTION by a true static assertion
@chhtzSubmitted by Christoph Hertzberg
Assigned to Nobody
Link to original bugzilla bug (#742)
Currently EIGEN_STATIC_ASSERT must be placed in code which is actually executed. For some assertions such checking template parameters this makes it necessary to be called from all constructors.
BOOST_STATIC_ASSERT essentially makes a typedef which does not compile if the condition is false:
This can be put anywhere inside a class and (I assume) it is guaranteed to not produce instructions regardless of optimization options.