heremaps / flatdata

Write-once, read-many, minimal overhead binary structured file format.
Apache License 2.0
180 stars 28 forks source link

Struct::to_string broken for enumeration fields #203

Closed VeaaC closed 2 years ago

VeaaC commented 3 years ago

If you have a struct containing an enum, e.g.:

namespace ttf {
enum RestrictionType : u8 {
    DUMMY,
}
struct A {
    restriction_type : RestrictionType;
}
}

Then the generated A::to_string does not compile:

error: no match for ‘operator+’:
     "    restriction_type : " << +restriction_type << "," << std::endl