mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-01-12 09:49:08 +01:00
9c0c817e6f
The previous code could potentially be a compilation issue waiting to occur, given we forward declare the type for a std::unique_ptr. If the complete definition of the forward declared type isn't visible in a translation unit that the class is used in, then it would fail to compile. Defaulting the destructor in a cpp file ensures the std::unique_ptr's destructor is only invoked where its complete type is known.