diff --git a/test/helpers/allocator.hpp b/test/helpers/allocator.hpp index e78280ba..5e489e7e 100644 --- a/test/helpers/allocator.hpp +++ b/test/helpers/allocator.hpp @@ -47,6 +47,15 @@ namespace test bool operator==(malloc_allocator const& x) const { return true; } bool operator!=(malloc_allocator const& x) const { return false; } + +#if BOOST_WORKAROUND(BOOST_MSVC, < 1300) + template void deallocate(T* p, size_type) { + free(p); + } + char* _Charalloc(size_type n) { + return static_cast(malloc(n * sizeof(char))); + } +#endif }; }