#Gross Template Syntax question
7 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
std::add_rvalue_reference ? I think so
Still unable to deduce the template argument from the function pointer I'm afraid
why would you need to take a pointer to member function by reference? let alone by rvalue reference?
^ Member references are constants. No need for reference or r-value as they won't change at runtime. The pointer semantics is more to differentiate from calls/references to the value.
Although actually if the reference would be coming from a variable, that variable can change at runtime so taking a pointer/reference to that could make sense to use the updated value down the line, however I struggle to see what uses-case that would have. But also no point in r-value as member references are just numbers at runtime and not structures.