Minimal changes to sol2 and bgfx to compile as C++17.

These changes should be sent upstream as pull requests.
This commit is contained in:
Vas Crabb 2020-11-15 03:57:08 +11:00
parent 55b8ca317a
commit f191d038ec
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
#if defined(__MINGW32__) // BK - temp workaround for MinGW until I nuke d3dx12 usage.
extern "C++" {
__extension__ template<typename Ty>
const GUID& __mingw_uuidof();
constexpr const GUID& __mingw_uuidof();
template<>
const GUID& __mingw_uuidof<ID3D12Device>()

View File

@ -4533,7 +4533,7 @@ namespace sol {
class bad_optional_access : public std::exception {
public:
bad_optional_access() = default;
const char* what() const noexcept {
const char* what() const noexcept override {
return "Optional has no value";
}
};