Commit 714912a6 authored by Davis King's avatar Davis King

Made the is_function template work with functions of up to 10 arguments.

Previously it only worked up to 5 arguments.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404137
parent d751e4e4
......@@ -771,6 +771,21 @@ namespace dlib
struct is_function<T (A0, A1, A2, A3)> { static const bool value = true; };
template <typename T, typename A0, typename A1, typename A2, typename A3, typename A4>
struct is_function<T (A0, A1, A2, A3, A4)> { static const bool value = true; };
template <typename T, typename A0, typename A1, typename A2, typename A3, typename A4,
typename A5>
struct is_function<T (A0,A1,A2,A3,A4,A5)> { static const bool value = true; };
template <typename T, typename A0, typename A1, typename A2, typename A3, typename A4,
typename A5, typename A6>
struct is_function<T (A0,A1,A2,A3,A4,A5,A6)> { static const bool value = true; };
template <typename T, typename A0, typename A1, typename A2, typename A3, typename A4,
typename A5, typename A6, typename A7>
struct is_function<T (A0,A1,A2,A3,A4,A5,A6,A7)> { static const bool value = true; };
template <typename T, typename A0, typename A1, typename A2, typename A3, typename A4,
typename A5, typename A6, typename A7, typename A8>
struct is_function<T (A0,A1,A2,A3,A4,A5,A6,A7,A8)> { static const bool value = true; };
template <typename T, typename A0, typename A1, typename A2, typename A3, typename A4,
typename A5, typename A6, typename A7, typename A8, typename A9>
struct is_function<T (A0,A1,A2,A3,A4,A5,A6,A7,A8,A9)> { static const bool value = true; };
template <typename T> class funct_wrap0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment