fix KTX gcc errors

This commit is contained in:
Zach Pomerantz 2017-02-21 14:46:25 -05:00
parent 7a21466b68
commit 666be6912b
3 changed files with 4 additions and 7 deletions

View file

@ -16,6 +16,7 @@
#include <list>
#include <vector>
#include <cstdint>
#include <cstring>
#include <memory>
/* KTX Spec:

View file

@ -17,9 +17,7 @@ namespace ktx {
class ReaderException: public std::exception {
public:
ReaderException(const std::string& explanation) : _explanation("KTX deserialization error: " + explanation) {}
const char* what() const override {
return _explanation.c_str();
}
const char* what() const noexcept override { return _explanation.c_str(); }
private:
const std::string _explanation;
};
@ -179,4 +177,4 @@ namespace ktx {
return result;
}
}
}

View file

@ -16,9 +16,7 @@ namespace ktx {
class WriterException : public std::exception {
public:
WriterException(const std::string& explanation) : _explanation("KTX serialization error: " + explanation) {}
const char* what() const override {
return _explanation.c_str();
}
const char* what() const noexcept override { return _explanation.c_str(); }
private:
const std::string _explanation;
};