Minor fix for argument reference in MemFunSelectArgImpl

This commit is contained in:
Henrik Kinnunen 2010-03-26 18:00:23 +01:00
parent 5bc782561b
commit 1cae9f22f8

View file

@ -233,17 +233,17 @@ public:
}
template <typename Type1, typename Type2, typename Type3>
void operator ()(Type1 a, Type2 b, Type3 c) {
void operator ()(Type1& a, Type2& b, Type3& c) {
m_func(STLUtil::SelectArg<ArgNum>()(a, b, c));
}
template <typename Type1, typename Type2>
void operator ()(Type1 a, Type2 b) {
void operator ()(Type1& a, Type2& b) {
m_func(STLUtil::SelectArg<ArgNum>()(a, b));
}
template <typename Type1>
void operator ()(Type1 a) {
void operator ()(Type1& a) {
m_func(a);
}