|
@@ -193,7 +193,7 @@ void
|
|
throw_with_nested(_Tp&& __t, typename enable_if<
|
|
throw_with_nested(_Tp&& __t, typename enable_if<
|
|
is_class<typename remove_reference<_Tp>::type>::value &&
|
|
is_class<typename remove_reference<_Tp>::type>::value &&
|
|
!is_base_of<nested_exception, typename remove_reference<_Tp>::type>::value
|
|
!is_base_of<nested_exception, typename remove_reference<_Tp>::type>::value
|
|
-#if _LIBCPP_STD_VER > 11
|
|
|
|
|
|
+#if _LIBCPP_STD_VER > 11 && __has_feature(is_final)
|
|
&& !is_final<typename remove_reference<_Tp>::type>::value
|
|
&& !is_final<typename remove_reference<_Tp>::type>::value
|
|
#endif
|
|
#endif
|
|
>::type* = 0)
|
|
>::type* = 0)
|
|
@@ -215,7 +215,7 @@ void
|
|
throw_with_nested(_Tp&& __t, typename enable_if<
|
|
throw_with_nested(_Tp&& __t, typename enable_if<
|
|
!is_class<typename remove_reference<_Tp>::type>::value ||
|
|
!is_class<typename remove_reference<_Tp>::type>::value ||
|
|
is_base_of<nested_exception, typename remove_reference<_Tp>::type>::value
|
|
is_base_of<nested_exception, typename remove_reference<_Tp>::type>::value
|
|
-#if _LIBCPP_STD_VER > 11
|
|
|
|
|
|
+#if _LIBCPP_STD_VER > 11 && __has_feature(is_final)
|
|
|| is_final<typename remove_reference<_Tp>::type>::value
|
|
|| is_final<typename remove_reference<_Tp>::type>::value
|
|
#endif
|
|
#endif
|
|
>::type* = 0)
|
|
>::type* = 0)
|