LeMonADE-project / LeMonADE

Library for Monte Carlo Simulation applying the Bond Fluctuation Model
Other
3 stars 11 forks source link

Bugreport: mlecules cast shows undefined behavior when changing typelist arrangement #50

Open MartinWenge opened 8 years ago

MartinWenge commented 8 years ago

The "=" operator of molecules changes its behavoir when adding features with monomer-tag in different order, for instance: typedef LOKI_TYPELIST_6(FeatureMoleculesIO,FeatureFixedMonomers,FeatureAttributes,FeatureWall,FeatureExcludedVolumeSc<FeatureLatticePowerOfTwo<bool> >,FeatureTanglotronSR) Features; list one for molecules 1 and typedef LOKI_TYPELIST_3(FeatureMoleculesIO,FeatureAttributes,FeatureExcludedVolumeSc<>) Features; list 2 for molecules 2 works fine, but

`typedef LOKI_TYPELIST_6(FeatureMoleculesIO,FeatureAttributes,FeatureFixedMonomers,FeatureWall,FeatureExcludedVolumeSc<FeatureLatticePowerOfTwo<bool> >,FeatureTanglotronSR) Features; list 1 for molecules 1 does not work with list 2 for molecules 2.

This produces the following error:

template argument deduction/substitution failed:

Any suggestions? Is this behavior obvious and just a matter of programming or is it an internal problem?

hrabbel commented 8 years ago

Probably due to automatic typelist rearrangements in GenerateContextType. This would be a bigger issue to fix.