[glibmm] Glib::VariantBase::cast_dynamic(): Remove noexcept(false)



commit eaada317ab9287fc8d4e9c515b7c3ffd073fc299
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Mon Nov 20 16:24:34 2017 +0100

    Glib::VariantBase::cast_dynamic(): Remove noexcept(false)
    
    noexcept(false) has the same meaning as no noexcept specification, but
    Doxygen adds "noexcept" instead of "noexcept(false)" in the detailed
    description of the method, which is confusing. Bug 789329

 glib/src/variant.ccg |    2 +-
 glib/src/variant.hg  |    6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/glib/src/variant.ccg b/glib/src/variant.ccg
index bf9c12a..086c797 100644
--- a/glib/src/variant.ccg
+++ b/glib/src/variant.ccg
@@ -225,7 +225,7 @@ VariantContainerBase::get_child(VariantBase& child, gsize index) const
 // VariantContainerBase has no method variant_type()
 template <>
 VariantContainerBase
-VariantBase::cast_dynamic<VariantContainerBase>(const VariantBase& v) noexcept(false)
+VariantBase::cast_dynamic<VariantContainerBase>(const VariantBase& v)
 {
   if (!v.gobj())
     return VariantContainerBase();
diff --git a/glib/src/variant.hg b/glib/src/variant.hg
index a8b246a..60ab678 100644
--- a/glib/src/variant.hg
+++ b/glib/src/variant.hg
@@ -235,7 +235,7 @@ public:
     * @throws std::bad_cast if the Variant was not of the expected type.
     */
    template<class V_CastTo>
-   static V_CastTo cast_dynamic(const VariantBase& v) noexcept(false);
+   static V_CastTo cast_dynamic(const VariantBase& v);
 
    _IGNORE(g_variant_dict_new)
 
@@ -260,7 +260,6 @@ protected:
 
 template<class V_CastTo>
 V_CastTo VariantBase::cast_dynamic(const VariantBase& v)
-noexcept(false)
 {
   if(!(v.gobj()))
   {
@@ -421,8 +420,7 @@ protected:
 };
 
 template<>
-VariantContainerBase VariantBase::cast_dynamic<VariantContainerBase>(const VariantBase& v)
-noexcept(false);
+VariantContainerBase VariantBase::cast_dynamic<VariantContainerBase>(const VariantBase& v);
 
 /** 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]