[PATCH] [libc++] Fix PR20084 - std::is_function<void() const> failed.

Marshall Clow mclow.lists at gmail.com
Tue Feb 17 09:39:06 PST 2015


There are 12 different qualifiers that can go on functions.

  const
  volatile
  &
  &&

Since `&` and `&&` are mutually exclusive, that leaves 12 different possibilities.
I only see tests for four here.

I'd love a `remove_qualifiers` type trait that took a function type and returned the unqualified type. That would be useful in several places; but the only way I've figured out how to do it involves tons of specializations (and even more for the non-variadic compilers).


http://reviews.llvm.org/D7573

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list