[glibmm] ustring.h: Comment On Last Commit for Specialization



commit b2599d497471ae58b0afae42d9c8e08efa6c0c6d
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Sat Sep 20 20:19:28 2014 +0800

    ustring.h: Comment On Last Commit for Specialization
    
    Mention that the new specialization for Stringify for const char[N] is to
    avoid ambiguous constructor overloads for later versions of Visual C++.
    
        * glib/glibmm/ustring.h: Mention in the comments for the
          specialization on Stringify for const char[N] is for later
          versions of Visual C++, to avoid ambiguous contructor overloads.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736778

 glib/glibmm/ustring.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/glib/glibmm/ustring.h b/glib/glibmm/ustring.h
index 69b6733..c93a7d7 100644
--- a/glib/glibmm/ustring.h
+++ b/glib/glibmm/ustring.h
@@ -1327,7 +1327,8 @@ public:
 };
 
 /** A template specialization for Stringify<const char[N]> (for string literals),
- * because the regular template has ambiguous constructor overloads for char*.
+ * because the regular template has ambiguous constructor overloads for char*
+ * on later versions of Visual C++ (2008 and later at least).
  */
 template <std::size_t N>
 class ustring::Stringify<const char[N]>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]