Skip to content

Commit 540c165

Browse files
committed
Fix a test for the new msvc in vs 2022
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
1 parent 3ae0fd0 commit 540c165

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/NamespacesDerived/NamespacesDerived.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,9 @@ class CustomAllocator
9494
public:
9595
typedef T value_type;
9696

97-
T* allocate(size_t cnt, const void* = 0)
98-
{
99-
return 0;
100-
}
101-
void deallocate(T* p, size_t cnt)
102-
{
103-
}
97+
T* allocate(size_t cnt, const void* = 0) { return 0; }
98+
void deallocate(T* p, size_t cnt) {}
99+
bool operator==(const CustomAllocator&) { return true; }
104100
};
105101

106102
class DLL_API Ignored

0 commit comments

Comments
 (0)