Re: [gdal-dev] C++ template functions with raster bands

2016-03-29 Thread Ari Jolma
29.03.2016, 20:48, Even Rouault kirjoitti: Le mardi 29 mars 2016 17:35:26, Ari Jolma a écrit : I want to write template functions like this: template void map(GDALRasterBand *b, mapper *mapper) { ... This function would map the cell values of a band to new ones using some logic that is coded w

Re: [gdal-dev] C++ template functions with raster bands

2016-03-29 Thread Even Rouault
Le mardi 29 mars 2016 17:35:26, Ari Jolma a écrit : > I want to write template functions like this: > > template > void map(GDALRasterBand *b, mapper *mapper) { > ... > > This function would map the cell values of a band to new ones using some > logic that is coded within the mapper object (and t

[gdal-dev] C++ template functions with raster bands

2016-03-29 Thread Ari Jolma
I want to write template functions like this: template void map(GDALRasterBand *b, mapper *mapper) { ... This function would map the cell values of a band to new ones using some logic that is coded within the mapper object (and the logic depends on the cell_type). I would like to catch error