[Bug c++/78462] feature request: need function default arguments

2016-11-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78462 Jonathan Wakely changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug c++/78462] feature request: need function default arguments

2016-11-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78462 --- Comment #3 from Andrew Pinski --- Even this works in C++14: int a(int b, auto wish1=2, const auto wish2=test)

[Bug c++/78462] feature request: need function default arguments

2016-11-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78462 --- Comment #2 from Andrew Pinski --- That is: #include const std::string test="wish";//global var or const, but const gives me headaches int a(int b, int wish1=2, const std::string wish2=test) { } Works just fine in C++ and always has.

[Bug c++/78462] feature request: need function default arguments

2016-11-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78462 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|