Skip to content

Commit

Permalink
[over.ics.list] Fix missing std:: in example (#6453)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisenwave committed Aug 13, 2023
1 parent 3a2586c commit 00b4bb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/overloading.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2424,9 +2424,9 @@
f( {1.0} ); // error: narrowing

struct A {
A(std::initializer_list<double>); // \#1
A(std::initializer_list<complex<double>>); // \#2
A(std::initializer_list<std::string>); // \#3
A(std::initializer_list<double>); // \#1
A(std::initializer_list<std::complex<double>>); // \#2
A(std::initializer_list<std::string>); // \#3
};
A a{ 1.0,2.0 }; // OK, uses \#1

Expand Down

0 comments on commit 00b4bb2

Please sign in to comment.