← Back to team overview

yade-dev team mailing list archive

Functor declarations require full dispatched type declarations now

 

Hi there,

for those of you maintaining out-of-tree files with dispatchers, r2640 (and later) require types used inside FUNCTOR1D and FUNCTOR2D to be fully declared. E.g. FUNCTOR1D(Sphere) requires #include<yade/pkg/common/Sphere.hpp>. If the type is declared in the same file as functor, it must be before the functor so that the declarations is available. Files in trunk were adapted.

Best, Vaclav