Hello,
There might be an issue here, I'm using Git hash d66fa22 (quite recent but I could upgrade) and the support for enum class looks broken:
enum class TestEnumClass
{
A,
B,
C
};
void doSomething()
{
fmt::print("{}\n", TestEnumClass::A);
}
That prints the following error:
fmt/include/fmt/core.h:329:3: error: static assertion failed: don't know how to format the type, include fmt/ostream.h if it provides an operator<< that should be used
static_assert(internal::no_formatter_error<T>::value,
^~~~~~~~~~~~~
Classical enums work fine. It might be related to the management of convert_to_int in which std::is_convertible<T, int>::value returns false. I tried to include ostream.h, to make a custom formatter, etc., without success.
Does it ring any bell to you? Sorry if I'm missing something simple here, I'm a new user of fmt.
Thanks,
Best regards,
Louis
Hello,
There might be an issue here, I'm using Git hash d66fa22 (quite recent but I could upgrade) and the support for enum class looks broken:
That prints the following error:
Classical enums work fine. It might be related to the management of
convert_to_intin whichstd::is_convertible<T, int>::valuereturns false. I tried to include ostream.h, to make a custom formatter, etc., without success.Does it ring any bell to you? Sorry if I'm missing something simple here, I'm a new user of fmt.
Thanks,
Best regards,
Louis