From 7cd42186a75c9db2a99d5a8f6341b487b20192b7 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 19 Apr 2018 00:09:11 +0200 Subject: [PATCH] empty() should be noexcept --- ostd/path.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ostd/path.hh b/ostd/path.hh index c9fa022..e105108 100644 --- a/ostd/path.hh +++ b/ostd/path.hh @@ -880,7 +880,7 @@ struct path { * The path is actually never truly empty, but `.` is considered an * empty path. */ - bool empty() const { + bool empty() const noexcept { return (p_path == "."); }