From fec08372b8300aa1346485f705cd5c507ada0c53 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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@230330 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/utility | 1 + 1 file changed, 1 insertion(+) diff --git a/include/utility b/include/utility index 2cb10189..96db60a6 100644 --- a/include/utility +++ b/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