Author: caseycarter Date: Tue Nov 22 19:44:53 2016 New Revision: 287732 URL: http://llvm.org/viewvc/llvm-project?rev=287732&view=rev Log: Don't "LIBCPP_ONLY(stuff;)" at namespace scope.
Differential review: https://reviews.llvm.org/D27029 Modified: libcxx/trunk/test/std/utilities/variant/variant.variant/variant.swap/swap.pass.cpp Modified: libcxx/trunk/test/std/utilities/variant/variant.variant/variant.swap/swap.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/variant/variant.variant/variant.swap/swap.pass.cpp?rev=287732&r1=287731&r2=287732&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/variant/variant.variant/variant.swap/swap.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/variant/variant.variant/variant.swap/swap.pass.cpp Tue Nov 22 19:44:53 2016 @@ -577,10 +577,10 @@ void test_swap_noexcept() { } } - +#ifdef _LIBCPP_VERSION // This is why variant should SFINAE member swap. :-) -LIBCPP_ONLY(template class std::variant<int, NotSwappable>;) - +template class std::variant<int, NotSwappable>; +#endif int main() { test_swap_valueless_by_exception(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits