mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-30 22:55:33 +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.