Skip to content

Commit

Permalink
Merge pull request #1492 from stac47/fix_gcc9_allocator
Browse files Browse the repository at this point in the history
Fix gcc9 build error test/src/unit-allocator.cpp (Issue #1472)
  • Loading branch information
nlohmann authored Mar 11, 2019
2 parents 16d9cdc + ddc9f20 commit cabe235
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 cabe235

Please sign in to comment.