Merge pull request #23 from masamitsu-murase/use_static_cast_for_hierarchy_navigation
Use static_cast instead of reinterpret_cast for hierarchy navigation.mutable-v2
commit
e31ac4ebb4
|
@ -146,10 +146,10 @@ protected:
|
||||||
|
|
||||||
// Comparisons
|
// Comparisons
|
||||||
bool equals(const JsonValue * other) const override {
|
bool equals(const JsonValue * other) const override {
|
||||||
return m_value == reinterpret_cast<const Value<tag, T> *>(other)->m_value;
|
return m_value == static_cast<const Value<tag, T> *>(other)->m_value;
|
||||||
}
|
}
|
||||||
bool less(const JsonValue * other) const override {
|
bool less(const JsonValue * other) const override {
|
||||||
return m_value < reinterpret_cast<const Value<tag, T> *>(other)->m_value;
|
return m_value < static_cast<const Value<tag, T> *>(other)->m_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
const T m_value;
|
const T m_value;
|
||||||
|
|
Loading…
Reference in New Issue