mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-27 19:02:14 +00:00
On Windows the exception object is created using the result of GetLastError(). When compiled using MinGW the throw instruction itself is using some WinApi call which overwrites the last error. Therefore the error code must be retrieved before the exception is thrown.