TaskQueueBase: use C++17.

Fixed: webrtc:15371
Bug: webrtc:15371
Change-Id: I8bdcd733a7f43eb5e91986dfa478ad41e5074afd
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/320020
Auto-Submit: Markus Handell <handellm@webrtc.org>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40869}
diff --git a/api/task_queue/task_queue_base.h b/api/task_queue/task_queue_base.h
index da7a00d..89e9e9e 100644
--- a/api/task_queue/task_queue_base.h
+++ b/api/task_queue/task_queue_base.h
@@ -94,8 +94,7 @@
   void PostDelayedTask(absl::AnyInvocable<void() &&> task,
                        TimeDelta delay,
                        const Location& location = Location::Current()) {
-    PostDelayedTaskImpl(std::move(task), delay,
-                        PostDelayedTaskTraits{.high_precision = false},
+    PostDelayedTaskImpl(std::move(task), delay, PostDelayedTaskTraits{},
                         location);
   }
 
@@ -119,9 +118,9 @@
       absl::AnyInvocable<void() &&> task,
       TimeDelta delay,
       const Location& location = Location::Current()) {
-    PostDelayedTaskImpl(std::move(task), delay,
-                        PostDelayedTaskTraits{.high_precision = true},
-                        location);
+    PostDelayedTaskTraits traits;
+    traits.high_precision = true;
+    PostDelayedTaskImpl(std::move(task), delay, traits, location);
   }
 
   // As specified by `precision`, calls either PostDelayedTask() or