Ticket #4094: mpl.hpp.patch
File mpl.hpp.patch, 4.4 KB (added by , 13 years ago) |
---|
-
./boost_1_42_0/boost/intrusive/detail/mpl.hpp
138 138 struct is_unary_or_binary_function_impl 139 139 { static const bool value = false; }; 140 140 141 #ifndef BOOST_INTRUSIVE_TT_TEST_MSC_FUNC_SIGS 142 141 143 template <typename R> 142 144 struct is_unary_or_binary_function_impl<R (*)()> 143 145 { static const bool value = true; }; … … 145 147 template <typename R> 146 148 struct is_unary_or_binary_function_impl<R (*)(...)> 147 149 { static const bool value = true; }; 148 /*149 #ifdef BOOST_INTRUSIVE_TT_TEST_MSC_FUNC_SIGS150 151 template <typename R>152 struct is_unary_or_binary_function_impl<R (__stdcall*)()>153 { static const bool value = true; };154 150 155 template <typename R> 156 struct is_unary_or_binary_function_impl<R (__stdcall*)(...)> 157 { static const bool value = true; }; 151 #else // BOOST_INTRUSIVE_TT_TEST_MSC_FUNC_SIGS 158 152 159 153 template <typename R> 160 struct is_unary_or_binary_function_impl<R (__stdcall*)( ...)>154 struct is_unary_or_binary_function_impl<R (__stdcall*)()> 161 155 { static const bool value = true; }; 162 156 163 157 template <typename R> … … 165 159 { static const bool value = true; }; 166 160 167 161 template <typename R> 168 struct is_unary_or_binary_function_impl<R (__fastcall*)(...)>169 { static const bool value = true; };170 171 template <typename R>172 162 struct is_unary_or_binary_function_impl<R (__cdecl*)()> 173 163 { static const bool value = true; }; 174 164 175 165 template <typename R> 176 166 struct is_unary_or_binary_function_impl<R (__cdecl*)(...)> 177 167 { static const bool value = true; }; 168 178 169 #endif 179 */ 170 171 #ifndef BOOST_INTRUSIVE_TT_TEST_MSC_FUNC_SIGS 172 180 173 template <typename R, class T0> 181 174 struct is_unary_or_binary_function_impl<R (*)(T0)> 182 175 { static const bool value = true; }; … … 185 178 struct is_unary_or_binary_function_impl<R (*)(T0...)> 186 179 { static const bool value = true; }; 187 180 188 # ifdefBOOST_INTRUSIVE_TT_TEST_MSC_FUNC_SIGS181 #else // BOOST_INTRUSIVE_TT_TEST_MSC_FUNC_SIGS 189 182 190 183 template <typename R, class T0> 191 184 struct is_unary_or_binary_function_impl<R (__stdcall*)(T0)> 192 185 { static const bool value = true; }; 193 /*194 template <typename R, class T0>195 struct is_unary_or_binary_function_impl<R (__stdcall*)(T0...)>196 { static const bool value = true; };197 186 198 187 template <typename R, class T0> 199 188 struct is_unary_or_binary_function_impl<R (__fastcall*)(T0)> 200 189 { static const bool value = true; }; 201 190 202 191 template <typename R, class T0> 203 struct is_unary_or_binary_function_impl<R (__fastcall*)(T0...)>204 { static const bool value = true; };205 206 template <typename R, class T0>207 192 struct is_unary_or_binary_function_impl<R (__cdecl*)(T0)> 208 193 { static const bool value = true; }; 209 194 210 195 template <typename R, class T0> 211 196 struct is_unary_or_binary_function_impl<R (__cdecl*)(T0...)> 212 197 { static const bool value = true; }; 213 */ 198 214 199 #endif 215 200 201 #ifndef BOOST_INTRUSIVE_TT_TEST_MSC_FUNC_SIGS 202 216 203 template <typename R, class T0, class T1> 217 204 struct is_unary_or_binary_function_impl<R (*)(T0, T1)> 218 205 { static const bool value = true; }; … … 220 207 template <typename R, class T0, class T1> 221 208 struct is_unary_or_binary_function_impl<R (*)(T0, T1...)> 222 209 { static const bool value = true; }; 223 /*224 #ifdef BOOST_INTRUSIVE_TT_TEST_MSC_FUNC_SIGS225 210 226 template <typename R, class T0, class T1> 227 struct is_unary_or_binary_function_impl<R (__stdcall*)(T0, T1)> 228 { static const bool value = true; }; 211 #else // BOOST_INTRUSIVE_TT_TEST_MSC_FUNC_SIGS 229 212 230 213 template <typename R, class T0, class T1> 231 struct is_unary_or_binary_function_impl<R (__stdcall*)(T0, T1 ...)>214 struct is_unary_or_binary_function_impl<R (__stdcall*)(T0, T1)> 232 215 { static const bool value = true; }; 233 216 234 217 template <typename R, class T0, class T1> … … 236 219 { static const bool value = true; }; 237 220 238 221 template <typename R, class T0, class T1> 239 struct is_unary_or_binary_function_impl<R (__fastcall*)(T0, T1...)>240 { static const bool value = true; };241 242 template <typename R, class T0, class T1>243 222 struct is_unary_or_binary_function_impl<R (__cdecl*)(T0, T1)> 244 223 { static const bool value = true; }; 245 224 … … 247 226 struct is_unary_or_binary_function_impl<R (__cdecl*)(T0, T1...)> 248 227 { static const bool value = true; }; 249 228 #endif 250 */ 229 251 230 template <typename T> 252 231 struct is_unary_or_binary_function_impl<T&> 253 232 { static const bool value = false; };