Skip to content

Commit f3b6f0f

Browse files
committed
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.
1 parent e3866b9 commit f3b6f0f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/hello-exception.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ int main(int argc, char* argv[]) {
9595
recurse(10);
9696
if (do_wait) {
9797
fprintf(stderr, "Waiting\n");
98-
using namespace std::chrono_literals;
99-
std::this_thread::sleep_for(10s);
98+
std::this_thread::sleep_for(std::chrono::seconds(10));
10099
fprintf(stderr, "Exiting\n");
101100
}
102101
return 0;

0 commit comments

Comments
 (0)