Why does one call of this function use NRVO while another call of the same function does not?
vector
is a struct with two public members X
and Y
; a parameterized constructor that prints integer constructor called
; a copy constructor that prints copy constructor called
; and a move constructor that prints move constructor called <== This line is different
.
Why does one call of this function use NRVO while another call of the same function does not?
vector
is a struct with two public members X
and Y
; a parameterized constructor that prints integer constructor called
; a copy constructor that prints copy constructor called
; and a move constructor that prints move constructor called <== This line is different
.