fix copy-paste error: non-const -> const

This commit is contained in:
Matthias Geier 2018-08-15 17:13:36 +02:00 committed by Wenzel Jakob
parent 885b5b905a
commit 7bb1da969a

View File

@ -1593,7 +1593,7 @@ Helper vectorize(Return (Class::*f)(Args...)) {
return Helper(std::mem_fn(f));
}
// Vectorize a class method (non-const):
// Vectorize a class method (const):
template <typename Return, typename Class, typename... Args,
typename Helper = detail::vectorize_helper<decltype(std::mem_fn(std::declval<Return (Class::*)(Args...) const>())), Return, const Class *, Args...>>
Helper vectorize(Return (Class::*f)(Args...) const) {