Show Navigation
Conversation
Notices
-
@ninjawedding Are they going to implement explicit byval or byref specifications sometime this century, you reckon?
-
@maiyannah @ninjawedding Well if you want to pass by value and there's no && overload you can use something like "template <typename T> T make_temp(T in) {return in;}" to turn the variable into a temporary and use the fact that temporaries can't be reffed. But I agree that being able to be explicit about whether a variable should match a T, T& or T&& parameter would be very useful.