forked from OSchip/llvm-project
Prefix make_reverse_iterator with llvm namespace.
This was fallout from r243581. Turns out C++14 has make_reverse_iterator. Thanks to Filipe and David for the quick fix suggestion. llvm-svn: 243598
This commit is contained in:
parent
b963dedbe8
commit
95c14f59a8
|
@ -225,10 +225,10 @@ template <typename ContainerTy>
|
|||
auto reverse(
|
||||
ContainerTy &&C,
|
||||
typename std::enable_if<!has_rbegin<ContainerTy>::value>::type * = nullptr)
|
||||
-> decltype(make_range(make_reverse_iterator(std::end(C)),
|
||||
make_reverse_iterator(std::begin(C)))) {
|
||||
return make_range(make_reverse_iterator(std::end(C)),
|
||||
make_reverse_iterator(std::begin(C)));
|
||||
-> decltype(make_range(llvm::make_reverse_iterator(std::end(C)),
|
||||
llvm::make_reverse_iterator(std::begin(C)))) {
|
||||
return make_range(llvm::make_reverse_iterator(std::end(C)),
|
||||
llvm::make_reverse_iterator(std::begin(C)));
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue