// SPDX-License-Identifier: CC0-1.0 #pragma once #include namespace Common { // TODO: Replace with std::to_underlying in C++23 template constexpr std::underlying_type_t ToUnderlying(Enum e) noexcept { return static_cast>(e); } } // namespace Common