[PATCH] [libcxx] expose experimental::erased_type for all standard versions.

Eric Fiselier eric at efcs.ca
Thu Jul 17 00:46:00 PDT 2014


Hi mclow.lists,

The polymorphic allocator implementation would greatly benefit by defining virtual functions in the dynlib instead of inline. In order to do that some types are going to have to be available outside of c++1y. This is the first step.

http://reviews.llvm.org/D4554

Files:
  include/experimental/utility
  test/experimental/utilities/utility/utility.synop/includes.pass.cpp

Index: include/experimental/utility
===================================================================
--- include/experimental/utility
+++ include/experimental/utility
@@ -33,16 +33,12 @@
 
 # include <experimental/__config>
 
-#if _LIBCPP_STD_VER > 11
-
 # include <utility>
 
 _LIBCPP_BEGIN_NAMESPACE_LFTS
 
   struct _LIBCPP_TYPE_VIS_ONLY erased_type { };
 
 _LIBCPP_END_NAMESPACE_LFTS
 
-#endif /* _LIBCPP_STD_VER > 11 */
-
 #endif /* _LIBCPP_EXPERIMENTAL_UTILITY */
Index: test/experimental/utilities/utility/utility.synop/includes.pass.cpp
===================================================================
--- test/experimental/utilities/utility/utility.synop/includes.pass.cpp
+++ test/experimental/utilities/utility/utility.synop/includes.pass.cpp
@@ -11,11 +11,10 @@
 
 #include <experimental/utility>
 
+#ifndef _LIBCPP_UTILITY
+#   error "<experimental/utility> must include <utility>"
+#endif
+
 int main()
 {
-#if _LIBCPP_STD_VER > 11
-# ifndef _LIBCPP_UTILITY
-#   error "<experimental/utility> must include <utility>"
-# endif
-#endif /* _LIBCPP_STD_VER > 11 */
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4554.11560.patch
Type: text/x-patch
Size: 1084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140717/4a076570/attachment.bin>


More information about the cfe-commits mailing list