DEV Community

Discussion on: C++ References

 
noah11012 profile image
Noah11012

Not entirely sure as auto in some instances is tricky. I believe in your example that new_value will the type int.

Thread Thread
 
dwd profile image
Dave Cridland

It will be int&, I think: en.cppreference.com/w/cpp/language...