Infinite loop in constructor without for or while
The issue here is that the compiler interprets the statement test(_b); not as code that creates a temporary object of type test passing in parameter _b, but as a variable declaration for a variable named _b of type test, using the default constructor. Consequently, what looks like a piece of code that creates a temporary … Read more