Skip to content
Snippets Groups Projects

Fix complex.hpp to avoid warning

Merged 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

Merged by Sebastien PonceSebastien Ponce 4 years ago (Oct 7, 2020 11:31am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading