Replace use of deprecated C Standard library headers in C++ code.
Change-Id: I9fa6630c7e4bdb2897df34d417635d8c7d8253bc
Signed-off-by: Tyler Chatow <tchatow@gmail.com>
diff --git a/aos/events/event_loop_tmpl.h b/aos/events/event_loop_tmpl.h
index c509170..698191e 100644
--- a/aos/events/event_loop_tmpl.h
+++ b/aos/events/event_loop_tmpl.h
@@ -1,9 +1,8 @@
#ifndef AOS_EVENTS_EVENT_LOOP_TMPL_H_
#define AOS_EVENTS_EVENT_LOOP_TMPL_H_
-#include <inttypes.h>
-#include <stdint.h>
-
+#include <cinttypes>
+#include <cstdint>
#include <type_traits>
#include "aos/events/event_loop.h"
@@ -37,9 +36,8 @@
template <typename Watch>
void EventLoop::MakeWatcher(const std::string_view channel_name, Watch &&w) {
- using MessageType =
- typename event_loop_internal::watch_message_type_trait<decltype(
- &Watch::operator())>::message_type;
+ using MessageType = typename event_loop_internal::watch_message_type_trait<
+ decltype(&Watch::operator())>::message_type;
const Channel *channel = configuration::GetChannel(
configuration_, channel_name, MessageType::GetFullyQualifiedName(),
name(), node());