Closed DymOK93 closed 2 years ago
BitException::getErrorCode() marked as const
BitException::getErrorCode()
const
Closes #63
Build the following code:
// main.cpp #include <bit7zlibrary.hpp> #include <iostream> #include <iomanip> int main { try { bit7z::Bit7zLibrary lib; } catch (const BitException& exc) { std::cerr << "Unable to unpack an archive: error " << std::hex << exc.getErrorCode() << std::endl; } return 0; }
Sorry, I forgot that MSVC2012 doesn't support the noexcept specifier. Fixed with forced push.
noexcept
Description
BitException::getErrorCode()
marked asconst
Motivation and Context
Closes #63
How Has This Been Tested?
Build the following code:
Types of changes
Checklist: