Compile error
Summary
The main branch fails to compile with the error
n file included from /usr/include/c++/11/cassert:44,
from /home/cr67/Software/install/include/boost/numeric/ublas/detail/config.hpp:16,
from /home/cr67/Software/install/include/boost/numeric/ublas/exception.hpp:19,
from /home/cr67/Software/install/include/boost/numeric/ublas/storage.hpp:26,
from /home/cr67/Software/install/include/boost/numeric/ublas/vector.hpp:21,
from /home/cr67/Software/install/include/boost/numeric/ublas/matrix.hpp:18,
from /home/cr67/Software/OPAL/opal_src_3/src/Algorithms/BoostMatrix.h:21,
from /home/cr67/Software/OPAL/opal_src_3/src/Classic/Algorithms/CoordinateSystemTrafo.h:4,
from /home/cr67/Software/OPAL/opal_src_3/src/Classic/AbsBeamline/ElementBase.h:67,
from /home/cr67/Software/OPAL/opal_src_3/src/AbstractObjects/Element.h:34,
from /home/cr67/Software/OPAL/opal_src_3/src/AbstractObjects/BeamSequence.h:21,
from /home/cr67/Software/OPAL/opal_src_3/src/AbstractObjects/BeamSequence.cpp:19:
/home/cr67/Software/OPAL/opal_src_3/src/Algorithms/BoostMatrix.h: In instantiation of ‘T prod_boost_vector(const boost::numeric::ublas::matrix<double>&, const T&) [with T = Vektor<double, 3>]’:
/home/cr67/Software/OPAL/opal_src_3/src/Classic/Algorithms/CoordinateSystemTrafo.h:78:29: required from here
/home/cr67/Software/OPAL/opal_src_3/src/Algorithms/BoostMatrix.h:28:19: error: ‘const class Vektor<double, 3>’ has no member named ‘size’; did you mean ‘Size’?
28 | assert(vector.size() == 3);
| ~~~~~~~^~~~
This arises because the compiler is expecting a method like Vektor::size()
which does not exist. I note that Vektor::Size does appear to exist, but note the upper case.
Not that it should matter, but: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Steps to reproduce
Build the master