diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-03-29 00:47:41 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-29 00:50:13 +0200 |
commit | 552ba413bc95b1a14638558d9436141825100c52 (patch) | |
tree | f3c66d9787ebd1e3ad0f1e6c183a4c7e4928da24 /sal/inc | |
parent | 2cd77ac75ad16a0eb7ee2e3df30e5cb0950bf673 (diff) |
fix SFINAE detection of const char[N] for msvc
Diffstat (limited to 'sal/inc')
-rw-r--r-- | sal/inc/rtl/stringutils.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sal/inc/rtl/stringutils.hxx b/sal/inc/rtl/stringutils.hxx index 55326cef1006..3bf72c54064e 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 */ |