From 8ee1c167b976d5baac8e9ada1eec45a924a5a42d Mon Sep 17 00:00:00 2001 From: Chris Love Date: Fri, 3 Sep 2021 11:02:12 -0700 Subject: [PATCH] Don't use std::chrono_literals --- example/example.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index c580f796..5d588e1b 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -209,7 +209,6 @@ void stopwatch_example() spdlog::info("Stopwatch: {} seconds", sw); } -using namespace std::chrono_literals; void udp_example() { spdlog::sinks::udp_sink_config cfg("127.0.0.1", 11091); @@ -217,9 +216,9 @@ void udp_example() my_logger->set_level(spdlog::level::debug); for (int i = 0; i < 10; i++) { my_logger->info("hello world {}", i); -#ifndef _WIN32 +#ifdef _WIN32 // sendto() on winsock will drop packets if sent too quickly - std::this_thread::sleep_for(40ms); + std::this_thread::sleep_for(std::chrono::milliseconds(40)); #endif } }