Skip to content

Crash after use copy #704

Closed
Closed
@kolobok55

Description

@kolobok55

Simple example:

int main(int argc, char* argv[])
{
	Json::Value some_array;

	some_array.append( "text1" );
	some_array.append( "text2" );
	some_array.append( "text3" );

	{
		Json::Value al1, al2;
		al1.copy( some_array );
		al2.copy( some_array );
	}
	// Crash here
}

In older version (from sourceforge) works fine. If copy replace with "=", some_array become nullValue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions