Fix a compiling error by adding noexcept