This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
-- Jason, while working on this issue, I noticed that:
valarray<int> v1; v1 = { };
compiles just fine in -std=c++0x mode and, for the assignment, ends up being selected:
operator=(const Tp&)
with Tp == 0. On the other hand, in C++03 mode, the snippet doesn't compile at all. Could you please confirm the above is the expected behavior? Thanks in advance!
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |