diff --git a/tests/dotnet/NamespacesDerived/NamespacesDerived.h b/tests/dotnet/NamespacesDerived/NamespacesDerived.h index abed58c52..1353d75c8 100644 --- a/tests/dotnet/NamespacesDerived/NamespacesDerived.h +++ b/tests/dotnet/NamespacesDerived/NamespacesDerived.h @@ -103,6 +103,10 @@ class CustomAllocator public: typedef T value_type; + // Suppress some windows Debug errors with constructors. + CustomAllocator() noexcept {}; + template CustomAllocator(const CustomAllocator&) noexcept {}; + T* allocate(size_t cnt, const void* = 0) { return 0; } void deallocate(T* p, size_t cnt) {} bool operator==(const CustomAllocator&) { return true; }