<div dir="ltr">Hey Zach - what's your initial use case/motivation for this?</div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jun 30, 2018 at 3:43 PM Zachary Turner via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">zturner created this revision.<br>
zturner added reviewers: chandlerc, dblaikie, timshen.<br>
Herald added subscribers: dexonsmith, mgorny.<br>
<br>
This is a replacement for `std::any` until such time that we have C++17.  While I generally agree it should not be used, and usually you want something like a variant, there are still occasions where it can be useful.  One example is where a user wants to attach some user data to a structure that passes through library code and comes back around through a callback or similar mechanism.  Another is when porting old-style C code that uses `void*`.  I'm sure we can come up with plenty of other uses as well.<br>
<br>
<br>
<a href="https://reviews.llvm.org/D48807" rel="noreferrer" target="_blank">https://reviews.llvm.org/D48807</a><br>
<br>
Files:<br>
  llvm/include/llvm/ADT/Any.h<br>
  llvm/unittests/ADT/AnyTest.cpp<br>
  llvm/unittests/ADT/CMakeLists.txt<br>
<br>
</blockquote></div>