[libcxx] r213889 - [libcxx] expose experimental::erased_type for all standard versions.
Eric Fiselier
eric at efcs.ca
Thu Jul 24 12:17:38 PDT 2014
Author: ericwf
Date: Thu Jul 24 14:17:38 2014
New Revision: 213889
URL: http://llvm.org/viewvc/llvm-project?rev=213889&view=rev
Log:
[libcxx] expose experimental::erased_type for all standard versions.
Summary: 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.
Reviewers: mclow.lists, EricWF
Reviewed By: EricWF
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D4554
Modified:
libcxx/trunk/include/experimental/utility
libcxx/trunk/test/experimental/utilities/utility/utility.erased.type/erased_type.pass.cpp
libcxx/trunk/test/experimental/utilities/utility/utility.synop/includes.pass.cpp
Modified: libcxx/trunk/include/experimental/utility
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/experimental/utility?rev=213889&r1=213888&r2=213889&view=diff
==============================================================================
--- libcxx/trunk/include/experimental/utility (original)
+++ libcxx/trunk/include/experimental/utility Thu Jul 24 14:17:38 2014
@@ -33,8 +33,6 @@ inline namespace fundamentals_v1 {
# include <experimental/__config>
-#if _LIBCPP_STD_VER > 11
-
# include <utility>
_LIBCPP_BEGIN_NAMESPACE_LFTS
@@ -43,6 +41,4 @@ _LIBCPP_BEGIN_NAMESPACE_LFTS
_LIBCPP_END_NAMESPACE_LFTS
-#endif /* _LIBCPP_STD_VER > 11 */
-
#endif /* _LIBCPP_EXPERIMENTAL_UTILITY */
Modified: libcxx/trunk/test/experimental/utilities/utility/utility.erased.type/erased_type.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/experimental/utilities/utility/utility.erased.type/erased_type.pass.cpp?rev=213889&r1=213888&r2=213889&view=diff
==============================================================================
--- libcxx/trunk/test/experimental/utilities/utility/utility.erased.type/erased_type.pass.cpp (original)
+++ libcxx/trunk/test/experimental/utilities/utility/utility.erased.type/erased_type.pass.cpp Thu Jul 24 14:17:38 2014
@@ -13,8 +13,5 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
- using std::experimental::erased_type;
- constexpr erased_type e{};
-#endif
+ std::experimental::erased_type e();
}
Modified: libcxx/trunk/test/experimental/utilities/utility/utility.synop/includes.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/experimental/utilities/utility/utility.synop/includes.pass.cpp?rev=213889&r1=213888&r2=213889&view=diff
==============================================================================
--- libcxx/trunk/test/experimental/utilities/utility/utility.synop/includes.pass.cpp (original)
+++ libcxx/trunk/test/experimental/utilities/utility/utility.synop/includes.pass.cpp Thu Jul 24 14:17:38 2014
@@ -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 */
}
More information about the cfe-commits
mailing list