catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Fix MSVC compilation when stringifying std::chrono::time_point
- Commit
4899d891d3946b8f43b31130330ce387caf316f9- Author
- Martin Hořeňovský ·
- Parents
760a25e8135e
Changes
include/internal/catch_tostring.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/internal/catch_tostring.h b/include/internal/catch_tostring.h index 568232ba..8348c825 100644 --- a/include/internal/catch_tostring.h +++ b/include/internal/catch_tostring.h @@ -347,9 +347,9 @@ namespace Catch { // Separate std::chrono::duration specialization #if defined(CATCH_CONFIG_ENABLE_CHRONO_STRINGMAKER) -#include <chrono> - +#include <ctime> #include <ratio> +#include <chrono> template <class Ratio> struct ratio_string {