[PATCH] D48807: Add llvm::Any

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 16 12:51:15 PDT 2018


zturner updated this revision to Diff 155742.
zturner added a subscriber: rsmith.
zturner added a comment.

Added a test suggested by @dblaikie.  Also reworked the `enable_if` condition on the copy-constructor based on comments from @rsmith that the previous check was incorrect for reasons that are still beyond my comprehension.  In doing this, I had to add `conjunction` and `negate` -- which are part of C++17 -- to STLExtras.


https://reviews.llvm.org/D48807

Files:
  llvm/include/llvm/ADT/Any.h
  llvm/include/llvm/ADT/STLExtras.h
  llvm/unittests/ADT/AnyTest.cpp
  llvm/unittests/ADT/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48807.155742.patch
Type: text/x-patch
Size: 11414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180716/331538dc/attachment.bin>


More information about the llvm-commits mailing list