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  
    44#include <vcl_iostream.h>
    55#include <vcl_complex.h>
    66#include <vil/vil_image_resource.h>
    7 #include <vil/vil_math.h>
    87#include <vil/vil_new.h>
    98#include <vil/vil_crop.h>
    109#include <vil/vil_clamp.h>
     
    2120static inline bool operator> (vcl_complex<float> const&, vcl_complex<float> const&) { return false; }
    2221static inline bool operator> (vcl_complex<double>const&, vcl_complex<double>const&) { return false; }
    2322
     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
    2427template <class T>
    2528void test_image_resource(vcl_string type, vil_pixel_format format, T /*dummy*/)
    2629{