mirror of https://github.com/SeanOMik/libki.git
pclass: EnumType::write_to should first attempt cast the value to `Enum`
This commit is contained in:
parent
69189e0fba
commit
680d378002
|
@ -112,7 +112,7 @@ namespace pclass
|
||||||
void EnumType::write_to(BitStream &stream, Value &value) const
|
void EnumType::write_to(BitStream &stream, Value &value) const
|
||||||
{
|
{
|
||||||
// Get an Enum reference and use it to write to the stream
|
// Get an Enum reference and use it to write to the stream
|
||||||
value.get<Enum>().write_to(stream);
|
value.as<Enum>().get<Enum>().write_to(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
Value EnumType::read_from(BitStream &stream) const
|
Value EnumType::read_from(BitStream &stream) const
|
||||||
|
|
Loading…
Reference in New Issue