genpfault/imageresampler — pull request #6 by rsaxvc (2014-09-01 04:35:03+00:00)
Title: Update test.cpp to remove RESAMPLER_MAX_DIMENSION limitation

Can you try and compile subrect-api on G++? Currently I still get:

resampler.cpp: In static member function ‘static std::auto_ptr Resampler::make_clist(unsigned int, unsigned int, Resampler::Boundary_Op, Resample_Real (*)(Resample_Real), Resample_Real, Resample_Real, Resample_Real)’:
resampler.cpp:426:33: error: template argument for ‘template class std::allocator’ uses local type ‘Resampler::make_clist(unsigned int, unsigned int, Resampler::Boundary_Op, Resample_Real (*)(Resample_Real), Resample_Real, Resample_Real, Resample_Real)::Contrib_Bounds’
std::vector< Contrib_Bounds > Pcontrib_bounds( dst_w, Contrib_Bounds() );
^
resampler.cpp:426:33: error: trying to instantiate ‘template class std::allocator’
resampler.cpp:426:33: error: template argument 2 is invalid

Although test.cpp compiles now.