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

Eric Fiselier eric at efcs.ca
Wed Feb 11 15:58:56 PST 2015


Hi mclow.lists, rsmith, K-ballo,

This patch introduces some black magic to detect const and volatile qualified function types such as `void () const`. I'm not quite sure how it works.

This fixes PR20084 - http://llvm.org/bugs/show_bug.cgi?id=20084

http://reviews.llvm.org/D7573

Files:
  include/type_traits
  test/std/utilities/meta/meta.unary/meta.unary.cat/function.pass.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7573.19792.patch
Type: text/x-patch
Size: 6244 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150211/e59cd0e3/attachment.bin>


More information about the cfe-commits mailing list