16 struct last_windows_error_t
19 std::string formatted;
30 last_windows_error_t get_last_windows_error()
32 const auto le = win::GetLastError();
34 last_windows_error_t result{};
39 size_t size = detail::FormatMessageA(0x00000100 | 0x00001000 | 0x00000200 | 0xFF,
nullptr,
le, 0, (
char*)&
messageBuffer, 0,
nullptr);
constexpr auto bit_count
Equal to the number of bits in the type.
The below code is based on Sun's libm library code, which is licensed under the following license:
Primary namespace for everything in this library.