Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一部の JSON::operator =(...) が古い内容を消去していなかったバグを修正 #1166

Closed
Reputeless opened this issue Dec 12, 2023 · 0 comments

Comments

@Reputeless
Copy link
Member

# include <Siv3D.hpp> // Siv3D v0.6.13

void Main()
{
	{
		JSON json;
		json[U"cc"] = 123;
		Print << json;

		Print << U"================";

		JSON a, b;
		a[U"a"] = 1;
		b[U"b"] = 3;
		json = { {U"aa", a}, {U"bb", b} };

		Print << json;
	}

	while (System::Update())
	{

	}
}
# include <Siv3D.hpp> // Siv3D v0.6.13

void Main()
{
	{
		JSON json;
		json.push_back(100);
		json.push_back(200);
		Print << json;

		Print << U"================";

		json = Array{ 300, 400, 500 };
		Print << json;
	}

	while (System::Update())
	{

	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant