Ticket #34838: patch-core__vil__tests__test_image_view.cxx-clang-compatibility.diff

File patch-core__vil__tests__test_image_view.cxx-clang-compatibility.diff, 786 bytes (added by neverpanic (Clemens Lang), 12 years ago)
  • core/vil/tests/test_image_view.cxx

    old new  
    536536TESTMAIN(test_image_view);
    537537
    538538
     539// vil_image_view.txx will instanciate convert_components_from_planes<my_int>,
     540// which we however want to explicitly specialize afterwards.  Provide a forward
     541// declaration here to prevent the compiler from assuming implicit
     542// instanciation.
     543
     544class my_int;
     545template <class T>
     546inline bool convert_components_from_planes(vil_image_view<T> &lhs, const
     547                vil_image_view_base &rhs_base);
     548VCL_DEFINE_SPECIALIZATION
     549inline bool convert_components_from_planes(vil_image_view<my_int> &,
     550                const vil_image_view_base &);
     551
    539552#include <vil/vil_image_view.txx>
    540553
    541554class my_int