@@ -846,18 +846,18 @@ VOID CALLBACK DetourFinishHelperProcess(_In_ HWND,
846
846
847
847
// ///////////////////////////////////////////////// Type-safe overloads for C++
848
848
//
849
- #if __cplusplus >= 201402L || _MSVC_LANG >= 201402L
849
+ #if __cplusplus >= 201103L || _MSVC_LANG >= 201103L
850
850
#include < type_traits>
851
851
852
852
template <typename T>
853
853
struct DetoursIsFunctionPointer : std::false_type {};
854
854
855
855
template <typename T>
856
- struct DetoursIsFunctionPointer <T*> : std::is_function<std::remove_pointer_t <T>> {};
856
+ struct DetoursIsFunctionPointer <T*> : std::is_function<typename std::remove_pointer <T>::type > {};
857
857
858
858
template <
859
859
typename T,
860
- std::enable_if_t <DetoursIsFunctionPointer<T>::value, int > = 0 >
860
+ typename std::enable_if <DetoursIsFunctionPointer<T>::value, int >::type = 0 >
861
861
LONG DetourAttach (_Inout_ T *ppPointer,
862
862
_In_ T pDetour) noexcept
863
863
{
@@ -868,7 +868,7 @@ LONG DetourAttach(_Inout_ T *ppPointer,
868
868
869
869
template <
870
870
typename T,
871
- std::enable_if_t <DetoursIsFunctionPointer<T>::value, int > = 0 >
871
+ typename std::enable_if <DetoursIsFunctionPointer<T>::value, int >::type = 0 >
872
872
LONG DetourAttachEx (_Inout_ T *ppPointer,
873
873
_In_ T pDetour,
874
874
_Out_opt_ PDETOUR_TRAMPOLINE *ppRealTrampoline,
@@ -885,7 +885,7 @@ LONG DetourAttachEx(_Inout_ T *ppPointer,
885
885
886
886
template <
887
887
typename T,
888
- std::enable_if_t <DetoursIsFunctionPointer<T>::value, int > = 0 >
888
+ typename std::enable_if <DetoursIsFunctionPointer<T>::value, int >::type = 0 >
889
889
LONG DetourDetach (_Inout_ T *ppPointer,
890
890
_In_ T pDetour) noexcept
891
891
{
@@ -894,7 +894,7 @@ LONG DetourDetach(_Inout_ T *ppPointer,
894
894
reinterpret_cast <void *>(pDetour));
895
895
}
896
896
897
- #endif // __cplusplus >= 201402L || _MSVC_LANG >= 201402L
897
+ #endif // __cplusplus >= 201103L || _MSVC_LANG >= 201103L
898
898
//
899
899
// ////////////////////////////////////////////////////////////////////////////
900
900
0 commit comments