diff --git a/Modules/Adapters/GdalAdapters/include/otbOGRLayerWrapper.h b/Modules/Adapters/GdalAdapters/include/otbOGRLayerWrapper.h
index 60a84b3624487b7ca7ba6eb3db38a03006f41b67..007229fc9ac2224b0ee822afe9250c0c86ad1bc7 100644
--- a/Modules/Adapters/GdalAdapters/include/otbOGRLayerWrapper.h
+++ b/Modules/Adapters/GdalAdapters/include/otbOGRLayerWrapper.h
@@ -328,9 +328,7 @@ public:
       : m_Layer(&layer), m_Crt(layer.GetNextFeature()) {}
     template <class OtherValue> feature_iter(
       feature_iter<OtherValue> const& other,
-      typename boost::enable_if<boost::is_convertible<OtherValue*,Value*>
-      , enabler
-      >::type = enabler()
+      typename boost::enable_if<boost::is_convertible<OtherValue*,Value*> >::type* = 0
     )
       : m_Layer(other.m_Layer), m_Crt(other.m_Crt)
       {}