| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
|
| 3 |
#include <queue> |
| 4 |
|
| 5 |
struct C : std::vector<int> |
| 6 |
{ |
| 7 |
C(int*, int*) { } |
| 8 |
}; |
| 9 |
|
| 10 |
int i; |
| 11 |
|
| 12 |
// LWG 3529. priority_queue(first, last) should construct c with (first, last) |
| 13 |
std::priority_queue<int, C> q(&i, &i); |