Skip to content

Commit 13af3cc

Browse files
Fix gtest printing
Signed-off-by: Konrad Breitsprecher <Konrad.Breitsprecher@vector.com>
1 parent 0810f1d commit 13af3cc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

SilKit/IntegrationTests/ITest_DynStepSizes.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,24 @@
77
#include <string>
88
#include <chrono>
99
#include <iostream>
10+
#include <sstream>
1011

1112
using namespace std::chrono_literals;
1213

13-
namespace std {
1414
template <typename Rep, typename Period>
1515
void PrintTo(const std::chrono::duration<Rep, Period>& d, std::ostream* os)
1616
{
1717
*os << std::chrono::duration_cast<std::chrono::nanoseconds>(d).count() << "ns";
1818
}
1919
template <typename R1, typename P1, typename R2, typename P2>
20-
inline void PrintTo(const std::pair<std::chrono::duration<R1, P1>, std::chrono::duration<R2, P2>>& p, std::ostream* os)
20+
void PrintTo(const std::pair<std::chrono::duration<R1, P1>, std::chrono::duration<R2, P2>>& p, std::ostream* os)
2121
{
2222
*os << "(";
2323
PrintTo(p.first, os);
2424
*os << ", ";
2525
PrintTo(p.second, os);
2626
*os << ")";
2727
}
28-
} // namespace std
2928

3029
inline std::string ToString(const std::chrono::nanoseconds& ns)
3130
{

0 commit comments

Comments
 (0)