Skip to content
Snippets Groups Projects
Commit d612e33c authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: #1567: fix compilation with GDAL 2.3.0

parent 21bf11ac
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,11 @@ typedef mpl::map
*/
template
< typename T
#if GDAL_VERSION_NUM >= 2030000
, T ( OGRFeature::*ptr_to_function )(int) const
#else
, T ( OGRFeature::*ptr_to_function )(int)
#endif
, typename FinalReturnType = T
> class MemberGetterPtr
{
......@@ -190,7 +194,11 @@ template
*/
template
< typename T
#if GDAL_VERSION_NUM >= 2030000
, T const* ( OGRFeature::*ptr_to_function )(int, int*) const
#else
, T const* ( OGRFeature::*ptr_to_function )(int, int*)
#endif
, typename FinalReturnType = std::vector<T>
> class MemberContainerGetterPtr
{
......@@ -292,7 +300,11 @@ template
*/
template
< typename T
#if GDAL_VERSION_NUM >= 2030000
, void ( OGRFeature::*ptr_to_function )(int, int, const T*)
#else
, void ( OGRFeature::*ptr_to_function )(int, int, T*) // not const-correct
#endif
, typename ActualParamType = std::vector<T>
> class MemberContainerSetterPtr
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment