From b4a4468d7bfb11cab0650abdf7a23d6f3eaa741f Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 11 Aug 2015 16:26:06 +0000 Subject: [PATCH] Revert "Add non-member begin and end so that drop_begin works on iterator_range." This reverts commit r244620. MSVC doesn't like it :-( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244621 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/iterator_range.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/llvm/ADT/iterator_range.h b/include/llvm/ADT/iterator_range.h index 9ab1c9645b3..3dd679bd9b7 100644 --- a/include/llvm/ADT/iterator_range.h +++ b/include/llvm/ADT/iterator_range.h @@ -47,16 +47,6 @@ public: IteratorT end() const { return end_iterator; } }; -template -IteratorT begin(const iterator_range &R) { - return R.begin(); -} - -template -IteratorT end(const iterator_range &R) { - return R.end(); -} - /// \brief Convenience function for iterating over sub-ranges. /// /// This provides a bit of syntactic sugar to make using sub-ranges -- 2.34.1