mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-03-04 19:13:29 +01:00
Fixed gcc 2.95.3 problem. Bug: 1570919
This commit is contained in:
parent
baca6c23c2
commit
3ffbf208a0
@ -605,7 +605,12 @@ Value::operator >( const Value &other ) const
|
|||||||
bool
|
bool
|
||||||
Value::operator ==( const Value &other ) const
|
Value::operator ==( const Value &other ) const
|
||||||
{
|
{
|
||||||
if ( type_ != other.type_ )
|
//if ( type_ != other.type_ )
|
||||||
|
// GCC 2.95.3 says:
|
||||||
|
// attempt to take address of bit-field structure member `Json::Value::type_'
|
||||||
|
// Beats me, but a temp solves the problem.
|
||||||
|
int temp = other.type_;
|
||||||
|
if ( type_ != temp )
|
||||||
return false;
|
return false;
|
||||||
switch ( type_ )
|
switch ( type_ )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user