http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49045
Summary: [C++0x] unexpected "different exception specifier"
error with noexcept
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
Hi. I'm seeing an error for this snippet which I cannot understand:
template<typename _Tp>
void
swap(_Tp&, _Tp&);
template<typename _Tp, __SIZE_TYPE__ _Nm>
void
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
noexcept(noexcept(swap(*__a, *__b)));
template<typename _Tp, __SIZE_TYPE__ _Nm>
void
swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
noexcept(noexcept(swap(*__a, *__b)))
{ }