From 1b54e83656ca59f87901b213fa01fc5a576bb909 Mon Sep 17 00:00:00 2001 From: Lewie Donckers Date: Tue, 15 Feb 2022 13:24:02 +0000 Subject: [PATCH] Forgot pragma once. And used ROS clang-format. --- src/common.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/common.hpp b/src/common.hpp index eec35118..79b4bd59 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -1,12 +1,15 @@ +#pragma once + #include -namespace path_tracking_pid { +namespace path_tracking_pid +{ // Converts an enumeration to its underlying type. -template +template constexpr std::underlying_type_t to_underlying(enum_type value) noexcept { - return static_cast>(value); + return static_cast>(value); } -} // namespace path_tracking_pid +} // namespace path_tracking_pid