Skip to content

Commit

Permalink
Fix gcc9 build error test/src/unit-allocator.cpp (Issue nlohmann#1472)
Browse files Browse the repository at this point in the history
  • Loading branch information
stac47 committed Feb 22, 2019
1 parent 21516f2 commit ddc9f20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/src/unit-allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ struct my_allocator : std::allocator<T>
p->~T();
}
}

template <class U>
struct rebind {
using other = my_allocator<U>;
};
};

// allows deletion of raw pointer, usually hold by json_value
Expand Down

0 comments on commit ddc9f20

Please sign in to comment.