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