libstdc++: Fix one more malformed requires-clause [PR107649]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 18 Nov 2022 21:17:51 +0000 (21:17 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 19 Nov 2022 15:05:28 +0000 (15:05 +0000)
libstdc++-v3/ChangeLog:

PR libstdc++/107649
* include/std/complex (__complex_proj): Fix requires-clause.

libstdc++-v3/include/std/complex

index 86d5ca3..912adb7 100644 (file)
@@ -2528,7 +2528,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 #endif
 
   template<typename _Tp>
-    requires(__complex_type<_Tp>::type)
+    requires requires { typename __complex_type<_Tp>::type; }
     inline complex<_Tp>
     __complex_proj(const complex<_Tp>& __z)
     { return __complex_proj(__z.__rep()); }