test_houghlines: Fix C++20 compatibility

C++20 made it invalid to use simple-template-ids for constructors and destructors: https://eel.is/c++draft/diff.cpp17.class#2
GCC 11 and later throw an error on this, with the unhelpful message `expected unqualified-id before ')' token`. This PR fixes the problem.
pull/24008/head
iarspider 1 year ago committed by GitHub
parent 0052d46b8e
commit 55906457e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/imgproc/test/test_houghlines.cpp

@ -53,7 +53,7 @@ struct SimilarWith
T value;
float theta_eps;
float rho_eps;
SimilarWith<T>(T val, float e, float r_e): value(val), theta_eps(e), rho_eps(r_e) { };
SimilarWith(T val, float e, float r_e): value(val), theta_eps(e), rho_eps(r_e) { };
bool operator()(const T& other);
};

Loading…
Cancel
Save