]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/meta/removeref.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/meta/removeref.h
3 // Purpose: Allows to remove a reference from a type.
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_META_REMOVEREF_H_
12 #define _WX_META_REMOVEREF_H_
14 // wxRemoveRef<> is similar to C++11 std::remove_reference<> but works with all
15 // compilers (but, to compensate for this, doesn't work with rvalue references).
17 // Except that it doesn't work with VC++ 6 as there doesn't seem to be any way
18 // to partially specialize a template for references with it.
28 struct wxRemoveRef
<T
&>
33 #define wxHAS_REMOVEREF
35 #endif // !__VISUALC6__
37 #endif // _WX_META_REMOVEREF_H_