Added wxIsPod<>. Use it in wxAny instead of wxIsMovable<>.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-06-14 15:12:37 +00:00
parent 97b8472b54
commit 109e2ca434
24 changed files with 236 additions and 69 deletions

View File

@@ -17,7 +17,7 @@
#if wxUSE_ANY
#include "wx/string.h"
#include "wx/meta/movable.h"
#include "wx/meta/pod.h"
#include "wx/meta/if.h"
#include "wx/typeinfo.h"
@@ -193,7 +193,7 @@ namespace wxPrivate
{
template<typename T>
class wxAnyValueTypeOpsMovable
class wxAnyValueTypeOpsPOD
{
public:
static void DeleteValue(wxAnyValueBuffer& buf)
@@ -270,9 +270,9 @@ public:
template<typename T>
class wxAnyValueTypeImplBase : public wxAnyValueType
{
typedef typename wxIf< wxIsMovable<T>::value &&
typedef typename wxIf< wxIsPod<T>::value &&
sizeof(T) <= WX_ANY_VALUE_BUFFER_SIZE,
wxPrivate::wxAnyValueTypeOpsMovable<T>,
wxPrivate::wxAnyValueTypeOpsPOD<T>,
wxPrivate::wxAnyValueTypeOpsGeneric<T> >::value
Ops;