mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-13 06:43:20 -04:00
1b3b2e69a0
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.