Closed bernhardmgruber closed 1 year ago
Hmm, do we really want to show:
std::cout << "Int Complex\n";
using IComplex = Complex_t<int>;
OrderedVector<IComplex> vci(5);
...
std::cout << "Very Complex\n";
using VComplex = Complex_t<Complex>;
OrderedVector<VComplex> vcv(5);
in the solution?
Hmm, do we really want to show:
std::cout << "Int Complex\n"; using IComplex = Complex_t<int>; OrderedVector<IComplex> vci(5); ... std::cout << "Very Complex\n"; using VComplex = Complex_t<Complex>; OrderedVector<VComplex> vcv(5);
in the solution?
Yes, it's the bonus exercise ..
Hmm, do we really want to show:
std::cout << "Int Complex\n"; using IComplex = Complex_t<int>; OrderedVector<IComplex> vci(5); ... std::cout << "Very Complex\n"; using VComplex = Complex_t<Complex>; OrderedVector<VComplex> vcv(5);
in the solution?
I guess with explanation it's OK. Mathematically, it might not make sense, but you can sort them ...
Some students in the JLab afternoon lecture tried to build a
Complex<std::string>
. Make this less likely to happen again.