Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
[Support] Fix GCC compile after r336534
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336537 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
sam-mccall committed Jul 9, 2018
1 parent be37a90 commit 131b4d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/llvm/Support/JSON.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ class Array {
V.emplace_back(std::forward<Args>(A)...);
}
void pop_back() { V.pop_back(); }
iterator insert(const_iterator P, const Value &E) { return V.insert(P, E); }
iterator insert(const_iterator P, Value &&E) {
// FIXME: insert() takes const_iterator since C++11, old libstdc++ disagrees.
iterator insert(iterator P, const Value &E) { return V.insert(P, E); }
iterator insert(iterator P, Value &&E) {
return V.insert(P, std::move(E));
}
template <typename It> iterator insert(const_iterator P, It A, It Z) {
template <typename It> iterator insert(iterator P, It A, It Z) {
return V.insert(P, A, Z);
}
template <typename... Args> iterator emplace(const_iterator P, Args &&... A) {
Expand Down

0 comments on commit 131b4d7

Please sign in to comment.