ソースを参照

Fix missing noexcept specifier

This commit adds a noexcept specification to
BansheeEngine::Exception::what(), since it overrides
std::exception::what(), which has a noexcept specification since C++11.
Marc Legendre 9 年 前
コミット
cd0242e998
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Source/BansheeUtility/Include/BsException.h

+ 1 - 1
Source/BansheeUtility/Include/BsException.h

@@ -88,7 +88,7 @@ namespace BansheeEngine
 		virtual const String& getDescription(void) const { return mDescription; }
 		virtual const String& getDescription(void) const { return mDescription; }
 
 
 		/** Overriden std::exception::what. Returns the same value as getFullDescription(). */
 		/** Overriden std::exception::what. Returns the same value as getFullDescription(). */
-		const char* what() const override { return getFullDescription().c_str(); }
+		const char* what() const noexcept override { return getFullDescription().c_str(); }
 
 
 	protected:
 	protected:
 		long mLine;
 		long mLine;