Skip to content

Fix complex.hpp to avoid warning

Ben Couturier requested to merge bcouturi/cpluspluscourse:fix_complex into master

Fix warning in Complex.hpp:

test.cpp: In instantiation of ‘void compute(int, T, T) [with T = Complex_t<>]’:
test.cpp:51:45:   required from here
test.cpp:32:34: warning: implicitly-declared ‘constexpr Complex_t<>::Complex_t(const Complex_t<>&)’ is deprecated [-Wdeprecated-copy]
   32 |     generate(v.begin(), v.end(), Generator<T>(initial, step));
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Merge request reports