22 Aug
2022
22 Aug
'22
8:32 p.m.
On Sun, Aug 21, 2022 at 5:06 PM Peter Dimov via Boost
Returning views is basically a trap that's going to get everyone earlier or later, no matter how experienced.
One cool idea that I like is what abseil does in some cases, they return you some "proxy" that morphs into what you specify as lhs. For example absl::StrSplit() https://abseil.io/docs/cpp/guides/strings Not sure if that design has some problems beside being auto hostile.