empty() should be noexcept

master
Daniel Kolesa 2018-04-19 00:09:11 +02:00
parent dfc95fb6eb
commit 7cd42186a7
1 changed files with 1 additions and 1 deletions

View File

@ -880,7 +880,7 @@ struct path {
* The path is actually never truly empty, but `.` is considered an * The path is actually never truly empty, but `.` is considered an
* empty path. * empty path.
*/ */
bool empty() const { bool empty() const noexcept {
return (p_path == "."); return (p_path == ".");
} }