tap: make test function parameter const
This commit is contained in:
parent
d4b951b4db
commit
452c5511a4
2
tap.hpp
2
tap.hpp
@ -41,7 +41,7 @@ namespace util { namespace TAP {
|
||||
void expect (bool, const std::string &fmt, Args&&...);
|
||||
|
||||
template <typename ...Args>
|
||||
void expect (std::function<bool(Args...)>, Args&&..., const std::string& msg);
|
||||
void expect (const std::function<bool(Args...)>&, Args&&..., const std::string& msg);
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
template <typename T, typename U, typename ...Args>
|
||||
|
2
tap.ipp
2
tap.ipp
@ -45,7 +45,7 @@ util::TAP::logger::expect (bool test, const std::string &fmt, Args&&... args)
|
||||
//-----------------------------------------------------------------------------
|
||||
template <typename... Args>
|
||||
void
|
||||
util::TAP::logger::expect (std::function<bool(Args...)> test, Args&&... args, const std::string &msg)
|
||||
util::TAP::logger::expect (const std::function<bool(Args...)> &test, Args&&... args, const std::string &msg)
|
||||
{
|
||||
expect (test (std::forward<Args> (args)...), msg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user