rangeless icon indicating copy to clipboard operation
rangeless copied to clipboard

Recent compilers are warning about pessimizations

Open gotnone opened this issue 5 years ago • 1 comments

I have been playing around with rangeless as a faster compiling alternative to std::ranges and ranges-v3. I have been getting some compiler warnings that there are redundant or pessimizing moves in fn::transform and in fn::take_while. Would you consider removing the unnecessary std::move wrappers on lines 1592 and 1846? See this example. Thanks.

gotnone avatar Feb 12 '21 22:02 gotnone

Thanks for the suggestion! I'll have a look at it next week.

ast-al avatar Feb 14 '21 04:02 ast-al