X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/986d59e27e9bfd6a8fa77e83958e601498a8c567..be19c556083cc197be55acbd05db76ec6dc2e0c4:/include/wx/meta/if.h diff --git a/include/wx/meta/if.h b/include/wx/meta/if.h index 9b533a5ab1..931591cd48 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 ; @@ -61,14 +57,17 @@ struct wxIfImpl } // namespace wxPrivate -// wxIf<> template defines nested type "value" which is the same as +// wxIf<> template defines nested type "value" which is the same as // TTrue if the condition Cond (boolean compile-time constant) was met and // TFalse if it wasn't. // // 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_