From 1540d6f4727af985c5213b5768e1d10a05a80b8f Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Sat, 18 Nov 2017 15:51:13 +0100 Subject: [PATCH] SGPath: mark the str() and utf8Str() methods as 'noexcept' We'll use this to cleanly declare std::hash as 'noexcept' in the next commit, which appears to be desirable for std::hash template specializations, according to: http://en.cppreference.com/w/cpp/utility/hash --- simgear/misc/sg_path.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/misc/sg_path.hxx b/simgear/misc/sg_path.hxx index 75129164..f18ffe18 100644 --- a/simgear/misc/sg_path.hxx +++ b/simgear/misc/sg_path.hxx @@ -182,8 +182,8 @@ public: * Get the path string * @return path string */ - std::string str() const { return path; } - std::string utf8Str() const { return path; } + std::string str() const noexcept { return path; } + std::string utf8Str() const noexcept { return path; } std::string local8BitStr() const;