mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-09 08:19:32 +01: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.