mirror of
https://github.com/intel/llvm.git
synced 2026-02-07 07:39:11 +08:00
Don't "LIBCPP_ONLY(stuff;)" at namespace scope.
Differential review: https://reviews.llvm.org/D27029 llvm-svn: 287732
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user