[libcxx] r201844 - Solve the errors

Yaron Keren yaron.keren at gmail.com
Fri Feb 21 02:00:32 PST 2014


Author: yrnkrn
Date: Fri Feb 21 04:00:31 2014
New Revision: 201844

URL: http://llvm.org/viewvc/llvm-project?rev=201844&view=rev
Log:
Solve the errors

Error 1 error C2681: 'add_rvalue_reference<_Tp*>::type' : invalid expression
type for dynamic_cast c:\libcxx\include\type_traits

This is one more step getting libcxx compile under Visual C++. The patch is 
#if defined(_LIBCPP_MSVC) so will affect only this build.

When libcxx can be compiled, it will probably require the current version or
maybe even the next Update of Visual C++ 2013.

Patch by G M!


Modified:
    libcxx/trunk/include/type_traits

Modified: libcxx/trunk/include/type_traits
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/type_traits?rev=201844&r1=201843&r2=201844&view=diff
==============================================================================
--- libcxx/trunk/include/type_traits (original)
+++ libcxx/trunk/include/type_traits Fri Feb 21 04:00:31 2014
@@ -946,7 +946,7 @@ template <class _Tp> struct _LIBCPP_TYPE
 
 // is_polymorphic
 
-#if __has_feature(is_polymorphic)
+#if __has_feature(is_polymorphic) || defined(_LIBCPP_MSVC)
 
 template <class _Tp>
 struct _LIBCPP_TYPE_VIS_ONLY is_polymorphic





More information about the cfe-commits mailing list