You can use this: Use min({a,b,c}) instead of min(a,min(b,c)).
C++ is evolving ,are you?
# | User | Rating |
---|---|---|
1 | tourist | 3690 |
2 | jiangly | 3647 |
3 | Benq | 3581 |
4 | orzdevinwang | 3570 |
5 | Geothermal | 3569 |
5 | cnnfls_csy | 3569 |
7 | Radewoosh | 3509 |
8 | ecnerwala | 3486 |
9 | jqdai0815 | 3474 |
10 | gyh20 | 3447 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
3 | adamant | 163 |
4 | TheScrasse | 160 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 152 |
8 | orz | 146 |
9 | pajenegod | 145 |
9 | SecondThread | 145 |
You can use this: Use min({a,b,c}) instead of min(a,min(b,c)).
C++ is evolving ,are you?
Name |
---|
that feature has existed since C++11, so around 10 years ago
Then why does it give error on my compiler? I'm using gcc 4.3.0
I think GCC 4 is too old
At least here it says std::max with initializer list being a parameter has existed since C++11
Does adding
-std=c++0x
option to the compiler command line make it work? That's an older name of the C++11 draft before it got finalized. Ancient compilers may accept it.We know.