Fixed formatting, trying to fix msvc build error in appveyor

parent a74a031b
......@@ -238,28 +238,17 @@ TEST_CASE("controlled bad_alloc")
namespace
{
template<class T>
struct allocator_no_forward
struct allocator_no_forward : std::allocator<T>
{
typedef T value_type;
template <typename U>
struct rebind
{
struct rebind {
typedef allocator_no_forward<U> other;
};
T* allocate(size_t sz)
{
return static_cast<T*>(malloc(sz * sizeof(T)));
}
void deallocate(T* p, size_t)
{
free(p);
}
void construct(T* p, const T& arg)
template <class... Args>
void construct(T* p, const Args&... args)
{
::new (static_cast<void*>(p)) T(arg);
::new (static_cast<void*>(p)) T(args...);
}
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment