From f6d58a2a1faf4957479fc85b1d72447d9c261ff7 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 24 Feb 2015 12:46:39 +0000 Subject: [PATCH] Make the forward declaration for array swap have the same inline/visibility attributes as the definition. Thanks to Steven Wu for the catch. llvm-svn: 230330 --- libcxx/include/utility | 1 + 1 file changed, 1 insertion(+) diff --git a/libcxx/include/utility b/libcxx/include/utility index 2cb1018..96db60a 100644 --- a/libcxx/include/utility +++ b/libcxx/include/utility @@ -204,6 +204,7 @@ operator>=(const _Tp& __x, const _Tp& __y) // forward template +inline _LIBCPP_INLINE_VISIBILITY void swap(_Tp (&__a)[_Np], _Tp (&__b)[_Np]) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value); template -- 2.7.4