sal/inc/rtl/stringutils.hxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 552ba413bc95b1a14638558d9436141825100c52 Author: LuboÅ¡ LuÅák <l.lu...@suse.cz> Date: Thu Mar 29 00:47:41 2012 +0200 fix SFINAE detection of const char[N] for msvc diff --git a/sal/inc/rtl/stringutils.hxx b/sal/inc/rtl/stringutils.hxx index 55326ce..3bf72c5 100644 --- a/sal/inc/rtl/stringutils.hxx +++ b/sal/inc/rtl/stringutils.hxx @@ -114,6 +114,8 @@ struct ExceptConstCharArrayDetector< const char[ N ] > }; // this one is used to rule out only const char[N] // (const will be brought in by 'const T&' in the function call) +// msvc needs const char[N] here (not sure whether gcc or msvc +// are right, it doesn't matter). template< typename T > struct ExceptCharArrayDetector { @@ -123,6 +125,10 @@ template< int N > struct ExceptCharArrayDetector< char[ N ] > { }; +template< int N > +struct ExceptCharArrayDetector< const char[ N ] > +{ +}; } /* Namespace */
_______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits