From f3b6f0fa450ce18e358a3b5aa071d9bfb918e82c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 3 Dec 2021 11:40:34 +0200 Subject: [PATCH] test: Don't use std::chrono_literals, fix building hello-exception in C++11 mode std::chrono_literals require C++14. This simplifies building hello-exception on macOS, where current Apple Clang still default to C++11. --- test/hello-exception.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/hello-exception.cpp b/test/hello-exception.cpp index f93493d..12c2d6f 100644 --- a/test/hello-exception.cpp +++ b/test/hello-exception.cpp @@ -95,8 +95,7 @@ int main(int argc, char* argv[]) { recurse(10); if (do_wait) { fprintf(stderr, "Waiting\n"); - using namespace std::chrono_literals; - std::this_thread::sleep_for(10s); + std::this_thread::sleep_for(std::chrono::seconds(10)); fprintf(stderr, "Exiting\n"); } return 0;