It seems that with auto
parameters g++ just uses first auto
it encounters. Is this a bug?
auto f(std::vector<auto> a)
{
a.push_back('0');
return std::string("");
}
http://ideone.com/T69ytm
As stated by @SergeyA, this is a GCC bug. std::vector<auto>
should not have been accepted.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With