[libcxx-commits] [PATCH] D58023: [libcxx] MSVC does not provide constexpr for typeid and typeid is probably not constexpr
Danila Kutenin via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Feb 10 21:36:04 PST 2019
danlark updated this revision to Diff 186185.
danlark retitled this revision from "MSVC does not provide constexpr for typeid and typeid is probably not constexpr" to "[libcxx] MSVC does not provide constexpr for typeid and typeid is probably not constexpr".
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58023/new/
https://reviews.llvm.org/D58023
Files:
include/functional
Index: include/functional
===================================================================
--- include/functional
+++ include/functional
@@ -1901,12 +1901,12 @@
_LIBCPP_INLINE_VISIBILITY
static const __policy* __create_empty()
{
- static const _LIBCPP_CONSTEXPR __policy __policy_ = {nullptr, nullptr,
- true,
+ static const __policy __policy_ = {nullptr, nullptr,
+ true,
#ifndef _LIBCPP_NO_RTTI
- &typeid(void)
+ &typeid(void)
#else
- nullptr
+ nullptr
#endif
};
return &__policy_;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58023.186185.patch
Type: text/x-patch
Size: 843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190211/46255b65/attachment-0001.bin>
More information about the libcxx-commits
mailing list