diff options
author | Michael Kruse <llvm@meinersbur.de> | 2018-06-27 19:39:03 +0000 |
---|---|---|
committer | Michael Kruse <llvm@meinersbur.de> | 2018-06-27 19:39:03 +0000 |
commit | 2cb2199948683280e1c00cf9f08401699782311b (patch) | |
tree | 11b98d8c92c06f7fb32e73d2c4df34d5f9d126e0 /lldb/packages/Python/lldbsuite/test | |
parent | 5dc371a7a613f1cb1b92a2dba15d3de70895fcf9 (diff) | |
download | bcm5719-llvm-2cb2199948683280e1c00cf9f08401699782311b.tar.gz bcm5719-llvm-2cb2199948683280e1c00cf9f08401699782311b.zip |
[ADT] drop_begin: use adl_begin/adl_end. NFC.
Summary:
The instantiation of the drop_begin function template usually fails because the functions begin() and end() do not exist. Only when using on a container from the std namespace (or `llvm::iterator_range`s of something derived from `std::iterator`), they are matched to std::begin() and std::end() due to Koenig-lookup.
Explicitly use llvm::adl_begin and llvm::adl_end to make drop_begin applicable to anything iterable (including C-style arrays).
A solution for general `llvm::iterator_range`s was already tried in r244620, but got reverted in r244621 due to MSVC not liking it.
Reviewers: dblaikie, grosbach, aaron.ballman, ruiu
Reviewed By: dblaikie, aaron.ballman
Subscribers: aaron.ballman, llvm-commits
Differential Revision: https://reviews.llvm.org/D48598
llvm-svn: 335772
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions