dncurrency/nano/lib/stats_enums.cpp
2023-02-08 23:02:05 +01:00

21 lines
No EOL
430 B
C++

#include <nano/lib/stats_enums.hpp>
#define MAGIC_ENUM_RANGE_MIN 0
#define MAGIC_ENUM_RANGE_MAX 256
#include <magic_enum.hpp>
std::string_view nano::to_string (nano::stat::type type)
{
return magic_enum::enum_name (type);
}
std::string_view nano::to_string (nano::stat::detail detail)
{
return magic_enum::enum_name (detail);
}
std::string_view nano::to_string (nano::stat::dir dir)
{
return magic_enum::enum_name (dir);
}