I am trying to write a small program using MTL, but I get the indicated error when I try to make MTL Matrix a member of the class.
#include <boost/numeric/mtl/mtl.hpp>
class myClass
{
private:
mtl::dense2D<double> Ke(6,6);
};
However, there is no problem with the same statement in main ():
#include <boost/numeric/mtl/mtl.hpp>
int main(int argc, char** argv)
{
mtl::dense2D<double> Ke(6,6);
return 0;
}
I am very new to C ++ and I don't think it really is related to MTL, but where the error occurred to me.
source
share