Skip to content

Decay type of preBasisFactory before accessing static member

Summary

In BasisFactory::makeBasis() the PreBasisFactory is decay'ed when accessing requiredMultiIndexSize

Motivation

The function makeBasis() takes its parameter by universal reference. Thus the deduced template parameters may be of reference type. Thus accessing static members requires to strip the reference. Since members are accessed multiple times, an auxiliary type is introduced, i.e. RawPreBasisFactory, that is used when accessing static members.

Merge request reports