Is it possible to format std::vector of enum values? A single enum value is formatted as integer just fine but vector won't.
#include <fmt/core.h>
#include <fmt/ranges.h>
#include <vector>
enum ErrorCode : int {
Value1, Value2, Value3
};
int main() {
ErrorCode code = Value2;
fmt::print("{}", code); // ok
std::vector<ErrorCode> v = {Value1,Value2,Value3};
fmt::print("{}", fmt::join(v, ",")); // error
}
Is it possible to format std::vector of enum values? A single enum value is formatted as integer just fine but vector won't.
Thank you