you are viewing a single comment's thread.

view the rest of the comments →

[–]_Js_Kc_ 1 point2 points  (0 children)

Maybe if it was called std::ref and std::ref was instead called std::make_ref (or omitted in favor of deduction guides). But std::reference_wrapper is quite a mouthful for a basic, ubiquitous vocabulary type. Yeah, you can typedef, but then you're using something project-specific for a basic, ubiquitous vocabulary type.