sarlinpe · GitHub

Vistual Studio 2022 outputs compiler warning C4722.

warning C4722: 'colmap::LogMessageFatalThrow<std::invalid_argument>::~LogMessageFatalThrow<std::invalid_argument>': destructor never returns, potential memory leak

This PR attempts to suppress the C4722 warning. But I'm not sure if this is a good idea.

'function' : destructor never returns, potential memory leak
The flow of control terminates in a destructor. The thread or the entire program will terminate and allocated resources may not be released. Furthermore, if a destructor will be called for stack unwinding during exception processing, the behavior of executable is undefined.
To resolve, remove the function call that causes the destructor to not return.

Read the original on github.com ↗