Use static_cast instead of reinterpret_cast for hierarchy navigation.

mutable-v2
Masamitsu MURASE 2014-11-30 03:49:23 +09:00
parent 6de4c29e76
commit 37ca641d82
1 changed files with 2 additions and 2 deletions

View File

@ -146,10 +146,10 @@ protected:
// Comparisons
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 {
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;