Disambiguate operator<< for optimer (#8532)

This commit is contained in:
Charles Dang 2024-03-11 16:39:45 -04:00 committed by GitHub
parent 8974d04147
commit 5b05815d5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,10 +92,10 @@ private:
*
* @note The resulting output does <b>not</b> include a time unit suffix.
*/
template<typename OpTimerType>
inline std::ostream& operator<<(std::ostream& o, const OpTimerType& tm)
template<typename... OpTimerArgs>
inline std::ostream& operator<<(std::ostream& o, const optimer<OpTimerArgs...>& tm)
{
o << std::chrono::duration_cast<typename OpTimerType::resolution>(tm.elapsed()).count();
o << std::chrono::duration_cast<typename optimer<OpTimerArgs...>::resolution>(tm.elapsed()).count();
return o;
}