@@ -71,63 +71,63 @@ namespace fakeit {
7171 }
7272
7373 // const
74- template <int id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
74+ template <size_t id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
7575 std::is_base_of<T, C>::value>::type>
7676 MockingContext<internal::WithCommonVoid_t<R>, arglist...> stub (R (T::*vMethod)(arglist...) const ) {
7777 auto methodWithoutConstVolatile = reinterpret_cast <internal::WithCommonVoid_t<R> (T::*)(arglist...)>(vMethod);
7878 return impl.template stubMethod <id>(methodWithoutConstVolatile);
7979 }
8080
8181 // volatile
82- template <int id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
82+ template <size_t id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
8383 std::is_base_of<T, C>::value>::type>
8484 MockingContext<internal::WithCommonVoid_t<R>, arglist...> stub (R(T::*vMethod)(arglist...) volatile) {
8585 auto methodWithoutConstVolatile = reinterpret_cast <internal::WithCommonVoid_t<R>(T::*)(arglist...)>(vMethod);
8686 return impl.template stubMethod <id>(methodWithoutConstVolatile);
8787 }
8888
8989 // const volatile
90- template <int id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
90+ template <size_t id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
9191 std::is_base_of<T, C>::value>::type>
9292 MockingContext<internal::WithCommonVoid_t<R>, arglist...> stub (R(T::*vMethod)(arglist...) const volatile) {
9393 auto methodWithoutConstVolatile = reinterpret_cast <internal::WithCommonVoid_t<R>(T::*)(arglist...)>(vMethod);
9494 return impl.template stubMethod <id>(methodWithoutConstVolatile);
9595 }
9696
9797 // no qualifier
98- template <int id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
98+ template <size_t id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
9999 std::is_base_of<T, C>::value>::type>
100100 MockingContext<internal::WithCommonVoid_t<R>, arglist...> stub (R(T::*vMethod)(arglist...)) {
101101 auto methodWithoutConstVolatile = reinterpret_cast <internal::WithCommonVoid_t<R>(T::*)(arglist...)>(vMethod);
102102 return impl.template stubMethod <id>(methodWithoutConstVolatile);
103103 }
104104
105105 // ref
106- template <int id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
106+ template <size_t id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
107107 std::is_base_of<T, C>::value>::type>
108108 MockingContext<internal::WithCommonVoid_t<R>, arglist...> stub (R(T::*vMethod)(arglist...) &) {
109109 auto methodWithoutConstVolatile = reinterpret_cast <internal::WithCommonVoid_t<R>(T::*)(arglist...)>(vMethod);
110110 return impl.template stubMethod <id>(methodWithoutConstVolatile);
111111 }
112112
113113 // const ref
114- template <int id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
114+ template <size_t id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
115115 std::is_base_of<T, C>::value>::type>
116116 MockingContext<internal::WithCommonVoid_t<R>, arglist...> stub (R(T::*vMethod)(arglist...) const &) {
117117 auto methodWithoutConstVolatile = reinterpret_cast <internal::WithCommonVoid_t<R>(T::*)(arglist...)>(vMethod);
118118 return impl.template stubMethod <id>(methodWithoutConstVolatile);
119119 }
120120
121121 // rval ref
122- template <int id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
122+ template <size_t id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
123123 std::is_base_of<T, C>::value>::type>
124124 MockingContext<internal::WithCommonVoid_t<R>, arglist...> stub (R(T::*vMethod)(arglist...) &&) {
125125 auto methodWithoutConstVolatile = reinterpret_cast <internal::WithCommonVoid_t<R>(T::*)(arglist...)>(vMethod);
126126 return impl.template stubMethod <id>(methodWithoutConstVolatile);
127127 }
128128
129129 // const rval ref
130- template <int id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
130+ template <size_t id, typename R, typename T, typename ... arglist, class = typename std::enable_if<
131131 std::is_base_of<T, C>::value>::type>
132132 MockingContext<internal::WithCommonVoid_t<R>, arglist...> stub (R(T::*vMethod)(arglist...) const &&) {
133133 auto methodWithoutConstVolatile = reinterpret_cast <internal::WithCommonVoid_t<R>(T::*)(arglist...)>(vMethod);
0 commit comments