AtomPePacker icon indicating copy to clipboard operation
AtomPePacker copied to clipboard

Static local variable are not supported

Open libing0526 opened this issue 2 years ago • 0 comments

Static variable cannot be initialized:

class Test {
public:
	Test() {
		printf("Test:Test\n");
	}
	~Test() {
		printf("Test:~Test\n");
	}
};

int main()
{
	static Test tt;
	std::cout << "Hello World!\n";
	return 0;
}

output: Hello World!,doesn't have "Test:Test"

libing0526 avatar Nov 28 '22 08:11 libing0526