| Issue |
60999
|
| Summary |
allocator_traits<Alloc>::select_on_container_copy_construction rejected when used with a parameter pack
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
ojrosten
|
```
struct S
{
template<class... Allocator>
S(const Allocator&...) {}
};
template<class... Allocators>
void foo(const Allocators&... as)
{
S s(std::allocator_traits<Allocators>::select_on_container_copy_construction(as)...); // rejected
// OK:
//S s({std::allocator_traits<Allocators>::select_on_container_copy_construction(as)...});
}
```
Here's the godbolt link: https://godbolt.org/z/Pear79vvr
I did try to create an example without using allocator_traits but couldn't get it to fail.
Note that there doesn't seem to be a problem in the non-variadic case
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs