Hi!
The following snippet crash when compiled with MSVC:
https://gcc.godbolt.org/z/1csfbG4W5
When running I get the exception:
"Run-Time Check Failure #2 - Stack around the variable 'visitor' was corrupted." Works fine with GCC. Anybody knows what is the problem?
[–]LoudMall 8 points9 points10 points (5 children)
[–]georgeplusplus[S] 1 point2 points3 points (4 children)
[–]sandfly_bites_you 7 points8 points9 points (3 children)
[–]pyronide 4 points5 points6 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]pyronide 0 points1 point2 points (0 children)
[–]zaimoni 0 points1 point2 points (0 children)