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...
February 7-9
March 18-23, Tokyo, Japan
April 17-20, Bristol, UK
May 7-12, Aspen, CO, USA
June 24-29, St. Louis, MO, USA
July 2-5, Folkestone, Kent, UK
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.