X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/986d59e27e9bfd6a8fa77e83958e601498a8c567..05112735c29d896a101918aacd2224b54f6dd653:/include/wx/meta/if.h diff --git a/include/wx/meta/if.h b/include/wx/meta/if.h index 9b533a5ab1..82e6d3b135 100644 --- a/include/wx/meta/if.h +++ b/include/wx/meta/if.h @@ -30,11 +30,7 @@ struct wxIfImpl // without this skeleton it doesn't recognize Result as a class at all below #if defined(__VISUALC__) && !wxCHECK_VISUALC_VERSION(7) { - template struct Result - { - // intentionally don't define value here, this shouldn't be actually - // used, it's here just to work around a compiler bug - }; + template struct Result {}; } #endif // VC++ <= 6 ; @@ -67,8 +63,11 @@ struct wxIfImpl // // See wxVector in vector.h for usage example template -struct wxIf : wxPrivate::wxIfImpl::template Result +struct wxIf { + typedef typename wxPrivate::wxIfImpl + ::template Result::value + value; }; #endif // _WX_META_IF_H_