[cfe-dev] what libc++ version introduced C++14 delete operators?
Marshall Clow via cfe-dev
cfe-dev at lists.llvm.org
Wed Nov 29 07:50:33 PST 2017
On Wed, Nov 8, 2017 at 10:48 AM, René J.V. Bertin via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> I hope this is the right place to ask:
> What libc++ release version first had the C++14 new & delete operators
> (specifically, delete(void*, size_t))? I think they were introduced in svn
> rev. 229281 .
> I'm interested in particular how one can test for presence of these
> functions, preferably with an actual linking step (aka autoconf test).
> Rev 229281 was before we started updating _LIBCPP_VERSION to match the
An imperfect test would be checking _LIBCPP_VERSION and if it is greater
than 1101, then it will have those calls.
This has two drawbacks:
* There will be versions of libc++ where _LIBCPP_VERSION == 1101 and the
* There *may* be customized versions of libc++ where vendors have decided
to not ship those calls. (I don't know of any, but ...).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev