forked from boostorg/unordered
Give an implementation function a clearer name.
[SVN r41784]
This commit is contained in:
@@ -118,21 +118,21 @@ namespace test {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <class T, class P1, class P2, class T2>
|
template <class T, class P1, class P2, class T2>
|
||||||
inline void call_with_increased_arity(void (T::*fn)() const, T2 const& obj,
|
inline void call_ignore_extra_parameters(void (T::*fn)() const, T2 const& obj,
|
||||||
P1&, P2&)
|
P1&, P2&)
|
||||||
{
|
{
|
||||||
(obj.*fn)();
|
(obj.*fn)();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T, class P1, class P2, class T2>
|
template <class T, class P1, class P2, class T2>
|
||||||
inline void call_with_increased_arity(void (T::*fn)(P1&) const, T2 const& obj,
|
inline void call_ignore_extra_parameters(void (T::*fn)(P1&) const, T2 const& obj,
|
||||||
P1& p1, P2&)
|
P1& p1, P2&)
|
||||||
{
|
{
|
||||||
(obj.*fn)(p1);
|
(obj.*fn)(p1);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T, class P1, class P2, class T2>
|
template <class T, class P1, class P2, class T2>
|
||||||
inline void call_with_increased_arity(void (T::*fn)(P1&, P2&) const, T2 const& obj,
|
inline void call_ignore_extra_parameters(void (T::*fn)(P1&, P2&) const, T2 const& obj,
|
||||||
P1& p1, P2& p2)
|
P1& p1, P2& p2)
|
||||||
{
|
{
|
||||||
(obj.*fn)(p1, p2);
|
(obj.*fn)(p1, p2);
|
||||||
@@ -156,10 +156,10 @@ namespace test {
|
|||||||
strong.store(x);
|
strong.store(x);
|
||||||
try {
|
try {
|
||||||
ENABLE_EXCEPTIONS;
|
ENABLE_EXCEPTIONS;
|
||||||
call_with_increased_arity(&Test::run, test_, x, strong);
|
call_ignore_extra_parameters(&Test::run, test_, x, strong);
|
||||||
}
|
}
|
||||||
catch(...) {
|
catch(...) {
|
||||||
call_with_increased_arity(&Test::check, test_,
|
call_ignore_extra_parameters(&Test::check, test_,
|
||||||
constant(x), constant(strong));
|
constant(x), constant(strong));
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user