Don't "LIBCPP_ONLY(stuff;)" at namespace scope.

Differential review: https://reviews.llvm.org/D27029

llvm-svn: 287732
This commit is contained in:
Casey Carter
2016-11-23 01:44:53 +00:00
parent f6fbe21bef
commit ca1c5e0fb6

View File

@@ -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();