diff options
Diffstat (limited to 'sal/inc/rtl/stringutils.hxx')
-rw-r--r-- | sal/inc/rtl/stringutils.hxx | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/sal/inc/rtl/stringutils.hxx b/sal/inc/rtl/stringutils.hxx index 866bf232d37f..55326cef1006 100644 --- a/sal/inc/rtl/stringutils.hxx +++ b/sal/inc/rtl/stringutils.hxx @@ -101,7 +101,30 @@ struct ConstCharArrayDetector< const char[ N ], T > typedef T Type; static const int size = N; }; -} + +// this one is used to rule out only const char[N] +template< typename T > +struct ExceptConstCharArrayDetector +{ + typedef Dummy Type; +}; +template< int N > +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) +template< typename T > +struct ExceptCharArrayDetector +{ + typedef Dummy Type; +}; +template< int N > +struct ExceptCharArrayDetector< char[ N ] > +{ +}; + +} /* Namespace */ } /* Namespace */ |