Ticket #34838: patch-core__vil__tests__test_image_resource.cxx-clang-compatibility.diff
File patch-core__vil__tests__test_image_resource.cxx-clang-compatibility.diff, 873 bytes (added by neverpanic (Clemens Lang), 12 years ago) |
---|
-
core/vil/tests/test_image_resource.cxx
old new 4 4 #include <vcl_iostream.h> 5 5 #include <vcl_complex.h> 6 6 #include <vil/vil_image_resource.h> 7 #include <vil/vil_math.h>8 7 #include <vil/vil_new.h> 9 8 #include <vil/vil_crop.h> 10 9 #include <vil/vil_clamp.h> … … 21 20 static inline bool operator> (vcl_complex<float> const&, vcl_complex<float> const&) { return false; } 22 21 static inline bool operator> (vcl_complex<double>const&, vcl_complex<double>const&) { return false; } 23 22 23 // vil_math.h needs to be included _after_ declaring the operators, or the 24 // operator need to be in namespace that vcl_complex is in 25 #include <vil/vil_math.h> 26 24 27 template <class T> 25 28 void test_image_resource(vcl_string type, vil_pixel_format format, T /*dummy*/) 26 29 {