#ifndef MEMGRAPH_UTILS_UNDERLYING_CAST_HPP #define MEMGRAPH_UTILS_UNDERLYING_CAST_HPP #include template constexpr typename std::underlying_type::type underlying_cast(T e) { return static_cast::type>(e); } #endif