Forum

Rvalue references  

  RSS

CarstenD
(@carstend)
New Member
Joined:1 year  ago
Posts: 1
07/12/2017 3:08 pm  

Hi Stephan,

 

halfway through your book and so far I love the comprehensive writing style and informative content. Keep up the good work!

 

I would like to point out a mistake on page 97: you state that a function signature like the following

void function(const Type& param) 

can only be given lvalue parameters during invocation. To my knowledge, const lvalue references can bind to rvalues, still overload resolution would make the compiler choose the rvalue refernece version of the function

ReplyQuote
Stephan Roth
(@stephan-roth)
Author Admin
Joined:1 year  ago
Posts: 2
08/12/2017 12:25 am  

Hi Carsten,

first of all congratulations to you for being the author of the first post in this forum. And thank you for your feedback.

Also thanks for the bug report. Maybe you're right, I will check it out soon and will reply again here. I ask for a little patience, as I'm busy at the moment, but on the weekend I'll take a closer look.

Best regards,
Stephan


ReplyQuote
Share: