From 2fe2d3de6b8c4020bd36c7259a5d4fb70b670592 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 24 Jun 2010 10:34:11 +0000 Subject: [PATCH] Add correct wxArgNormalizer code for signed char. Signed char is distict type (see 3.9.1 [basic.fundamental] part of the standard), covering just char and unsigned char is not enough. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/strvararg.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/wx/strvararg.h b/include/wx/strvararg.h index 29b4ae041b..a39e7b293e 100644 --- a/include/wx/strvararg.h +++ b/include/wx/strvararg.h @@ -607,6 +607,15 @@ struct wxArgNormalizer : wxArgNormalizerNarrowChar(value, fmt, index) {} }; +template<> +struct wxArgNormalizer + : public wxArgNormalizerNarrowChar +{ + wxArgNormalizer(signed char value, + const wxFormatString *fmt, unsigned index) + : wxArgNormalizerNarrowChar(value, fmt, index) {} +}; + #endif // wxUSE_UNICODE // convert references: @@ -617,6 +626,7 @@ WX_ARG_NORMALIZER_FORWARD(const wchar_t&, wchar_t); WX_ARG_NORMALIZER_FORWARD(const char&, char); WX_ARG_NORMALIZER_FORWARD(const unsigned char&, unsigned char); +WX_ARG_NORMALIZER_FORWARD(const signed char&, signed char); #undef WX_ARG_NORMALIZER_FORWARD -- 2.45.2