- Title
- Overload resolution with empty braced-init-list argument
- Status
- c++11
- Section
- 12.2.2.8 [over.match.list]
- Submitter
- Johannes Schaub
Created on 2010-12-09.00:00:00 last changed 152 months ago
Messages
Date: 2011-03-15.00:00:00
[Voted into the WP at the March, 2011 meeting as part of paper N3262.]
Date: 2010-12-09.00:00:00
The changes for issue 990 did not address
the description of overload resolution when an argument is an empty
braced-init-list. For example:
struct A {
A();
A(std::initializer_list<int>);
A(std::initializer_list<double>);
};
A a{}; // OK
void f(A);
void g() {
f({}); // ambiguous
}
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-03-03 00:00:00 | admin | set | status: fdis -> c++11 |
| 2011-04-10 00:00:00 | admin | set | messages: + msg3374 |
| 2011-04-10 00:00:00 | admin | set | status: open -> fdis |
| 2010-12-09 00:00:00 | admin | create | |