cuda-kat icon indicating copy to clipboard operation
cuda-kat copied to clipboard

printfing_ostream manipulators copy the ostream & other construction issues

Open eyalroz opened this issue 3 years ago • 0 comments

Unfortunately, it seems our lambda-based manipulators are implicitly returning a copy of, rather than a reference to, the ostream they got - due to the implicit return type deduction.

In fact, it probably doesn't make much sense to copy-construct printfing-ostreams in the first place. let's disallow that for now. Let's use references or construct explicitly.

Finally, the move-construction of printfing_ostream doesn't initialize most fields from the existing ostream's fields.

eyalroz avatar Nov 18 '20 14:11 eyalroz