use typename for template parameters

This commit is contained in:
Tom 2019-10-02 16:59:22 +02:00
parent 2a04dd5cc1
commit 52dca2ac50

View File

@ -42,7 +42,7 @@ public:
this->condvar_.notify_all(); this->condvar_.notify_all();
} }
template<class Rep, class Period> template<typename Rep, typename Period>
void wait_for(const std::chrono::duration<Rep, Period>& time, void wait_for(const std::chrono::duration<Rep, Period>& time,
ValueType val) const ValueType val) const
{ {
@ -53,7 +53,7 @@ public:
return; return;
} }
template<class Rep, class Period, class Predicate> template<typename Rep, typename Period, typename Predicate>
void wait_for(const std::chrono::duration<Rep, Period>& time, void wait_for(const std::chrono::duration<Rep, Period>& time,
Predicate pred) const Predicate pred) const
{ {