Skip to content
Snippets Groups Projects
Commit 6b67854c authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

COMP: fix missing const in template

parent 681d8b1f
No related branches found
No related tags found
No related merge requests found
...@@ -232,7 +232,11 @@ template ...@@ -232,7 +232,11 @@ template
*/ */
template template
< typename T < 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 , void ( OGRFeature::*ptr_to_function )(int, int, T*) // not const-correct
#endif
, typename ActualParamType = std::vector<T> , typename ActualParamType = std::vector<T>
, bool Is_contiguous = boost::is_contiguous<ActualParamType>::value , bool Is_contiguous = boost::is_contiguous<ActualParamType>::value
> class TagDispatchMemberContainerSetterPtr; > class TagDispatchMemberContainerSetterPtr;
...@@ -241,7 +245,11 @@ template ...@@ -241,7 +245,11 @@ template
*/ */
template template
< typename T < 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 , void ( OGRFeature::*ptr_to_function )(int, int, T*) // not const-correct
#endif
, typename ActualParamType , typename ActualParamType
> class TagDispatchMemberContainerSetterPtr<T, ptr_to_function, ActualParamType, true> > class TagDispatchMemberContainerSetterPtr<T, ptr_to_function, ActualParamType, true>
{ {
...@@ -257,7 +265,11 @@ template ...@@ -257,7 +265,11 @@ template
*/ */
template template
< typename T < 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 , void ( OGRFeature::*ptr_to_function )(int, int, T*) // not const-correct
#endif
, typename ActualParamType , typename ActualParamType
> class TagDispatchMemberContainerSetterPtr<T, ptr_to_function, ActualParamType, false> > class TagDispatchMemberContainerSetterPtr<T, ptr_to_function, ActualParamType, false>
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment