Skip to content

Commit

Permalink
🏁 trying to use constructors from std::allocator #1536
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Mar 21, 2019
1 parent 1126c9c commit baaa2a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/src/unit-allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ static bool next_deallocate_fails = false;
template<class T>
struct my_allocator : std::allocator<T>
{
using std::allocator<T>::allocator;

template<class... Args>
void construct(T* p, Args&& ... args)
{
Expand Down

0 comments on commit baaa2a4

Please sign in to comment.