• Francesco Biscani's avatar
    Add -Wdeprecated to test suite and fix associated warnings (#1191) · ba33b2fc
    Francesco Biscani authored
    This commit turns on `-Wdeprecated` in the test suite and fixes several
    associated deprecation warnings that show up as a result:
    
    - in C++17 `static constexpr` members are implicitly inline; our
      redeclaration (needed for C++11/14) is deprecated in C++17.
    
    - various test suite classes have destructors and rely on implicit copy
      constructors, but implicit copy constructor definitions when a
      user-declared destructor is present was deprecated in C++11.
    
    - Eigen also has various implicit copy constructors, so just disable
      `-Wdeprecated` in `eigen.h`.
    ba33b2fc
test_class.cpp 15.2 KB