[glibmm] C++11: Variant: Replace more throw(std::bad_cast) with noexcept(false).
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] C++11: Variant: Replace more throw(std::bad_cast) with noexcept(false).
- Date: Tue, 4 Apr 2017 18:34:36 +0000 (UTC)
commit 1a72cf56c6c743db298aad4617a49e2f6d3aa176
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Apr 4 20:34:13 2017 +0200
C++11: Variant: Replace more throw(std::bad_cast) with noexcept(false).
This is necessary for C++17 which completely removes dynamic
exception specifications.
See https://bugzilla.redhat.com/show_bug.cgi?id=1438766
glib/src/variant.hg | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/src/variant.hg b/glib/src/variant.hg
index bf5040b..be7452b 100644
--- a/glib/src/variant.hg
+++ b/glib/src/variant.hg
@@ -248,7 +248,7 @@ private:
template<class V_CastTo>
V_CastTo VariantBase::cast_dynamic(const VariantBase& v)
-throw(std::bad_cast)
+noexcept(false)
{
if(!(v.gobj()))
{
@@ -410,7 +410,7 @@ protected:
template<>
VariantContainerBase VariantBase::cast_dynamic<VariantContainerBase>(const VariantBase& v)
-throw(std::bad_cast);
+noexcept(false);
/** Template class used for the specialization of the Variant<> classes.
* @newin{2,28}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]