llvm-project/libcxx/test/std/experimental/optional/optional.object/optional.object.swap
Eric Fiselier c1d527d3d8 Fix PR30260 - optional<const T> not working.
This patch fixes PR30260 by using a (void*) cast on the placement argument
to placement new to casts away the const. See also http://llvm.org/PR30260.

As a drive by change this patch also changes the header guard for
<experimental/optional> to _LIBCPP_EXPERIMENTAL_OPTIONAL from _LIBCPP_OPTIONAL.

llvm-svn: 280775
2016-09-07 01:56:07 +00:00
..
swap.pass.cpp Fix PR30260 - optional<const T> not working. 2016-09-07 01:56:07 +00:00