commit | b9231a2326136a4d4955afb93a917099abb9c94e | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Wed Sep 07 01:56:07 2016 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Wed Sep 07 01:56:07 2016 +0000 |
tree | 39a839c1ccba3b4b4e081cefec0c8d340d390834 | |
parent | 01609afe243c26df20b505ed10ca7040a7a9c788 [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@280775 91177308-0d34-0410-b5e6-96231b3b80d8