mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-18 19:05:40 +02:00

Since only one instance of Catch::Session can ever be used. While trying to call session in my own function, I made a mistake of passing session object by value. It called copy constructor and destructor later, which called Catch::clean(). Disabling copy constructor of session can prevent similar mistakes.