[PATCH] D129531: [clang][C++20] P0960R3: Allow initializing aggregates from a parenthesized list of values
    Roy Jacobson via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Fri Oct 21 02:40:05 PDT 2022
    
    
  
royjacobson added inline comments.
================
Comment at: clang/test/SemaCXX/P0960R3.cpp:54
+}
+
+void foo() {
----------------
Could you add test that this works with variadic templates? Something like
```
template<class T, class... Args>
T construct(Args... args) {
  return T(args...);
}
```
Similar to the intended use case of make_unique/emplace_back etc.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129531/new/
https://reviews.llvm.org/D129531
    
    
More information about the cfe-commits
mailing list