Quick A: because it prevents moving from the value.
Recently on SO:
Why is const template parameter not a universal/forwarding reference?
Because it is a reference to const. And references to const are not forwarding references...
June 16-21, Sofia, Bulgaria
September 13-19, Aurora, CO, USA
October 25, Pavia, Italy
November 6-8, Berlin, Germany
November 16-21, Kona, HI, USA
By Adrien Hamelin | Sep 1, 2020 11:13 AM | Tags: intermediate c++11
Quick A: because it prevents moving from the value.
Recently on SO:
Why is const template parameter not a universal/forwarding reference?
Because it is a reference to const. And references to const are not forwarding references...
There are currently no comments on this entry.
Add a Comment
Comments are closed.