[PATCH] D33919: [ADT] Enforce class type for overridden SmallVector assign
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 5 16:34:05 PDT 2017
efriedma added inline comments.
================
Comment at: include/llvm/ADT/SmallVector.h:429
- template <typename in_iter> void assign(in_iter in_start, in_iter in_end) {
+ template <class in_iter> void assign(in_iter in_start, in_iter in_end) {
clear();
----------------
This change doesn't do anything; `typename` and `class` are equivalent in this context. From your description, maybe you want something using std::enable_if?
https://reviews.llvm.org/D33919
More information about the llvm-commits
mailing list