Get rid of warning: dynamic exception specifications are deprecated

pull/593/head
fredzio 4 years ago
parent 0e8c5c5034
commit 460e69e92a

@ -11,7 +11,7 @@ namespace Compiler
{
public:
virtual const char *what() const throw() { return "Compile error";}
const char *what() const noexcept override { return "Compile error";}
///< Return error message
};
@ -21,7 +21,7 @@ namespace Compiler
{
public:
virtual const char *what() const throw() { return "Can't read file"; }
const char *what() const noexcept final { return "Can't read file"; }
///< Return error message
};
@ -31,7 +31,7 @@ namespace Compiler
{
public:
virtual const char *what() const throw() { return "End of file"; }
const char *what() const noexcept final { return "End of file"; }
///< Return error message
};
}

@ -126,7 +126,7 @@ namespace DetourNavigator
mNavMeshTilesCache.reportStats(frameNumber, stats);
}
void AsyncNavMeshUpdater::process() throw()
void AsyncNavMeshUpdater::process() noexcept
{
Log(Debug::Debug) << "Start process navigator jobs by thread=" << std::this_thread::get_id();
while (!mShouldStop)

@ -113,7 +113,7 @@ namespace DetourNavigator
std::map<std::thread::id, Queue> mThreadsQueues;
std::vector<std::thread> mThreads;
void process() throw();
void process() noexcept;
bool processJob(const Job& job);

@ -10,22 +10,22 @@ namespace DetourNavigator
{
public:
template <class T>
explicit ObjectId(T* value) throw()
explicit ObjectId(T* value) noexcept
: mValue(reinterpret_cast<std::size_t>(value))
{
}
std::size_t value() const throw()
std::size_t value() const noexcept
{
return mValue;
}
friend bool operator <(const ObjectId lhs, const ObjectId rhs) throw()
friend bool operator <(const ObjectId lhs, const ObjectId rhs) noexcept
{
return lhs.mValue < rhs.mValue;
}
friend bool operator ==(const ObjectId lhs, const ObjectId rhs) throw()
friend bool operator ==(const ObjectId lhs, const ObjectId rhs) noexcept
{
return lhs.mValue == rhs.mValue;
}
@ -40,7 +40,7 @@ namespace std
template <>
struct hash<DetourNavigator::ObjectId>
{
std::size_t operator ()(const DetourNavigator::ObjectId value) const throw()
std::size_t operator ()(const DetourNavigator::ObjectId value) const noexcept
{
return value.value();
}

Loading…
Cancel
Save