On Wednesday, 16 November 2022 22:54:51 CET Barry Revzin via Core wrote:
> We have
> https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommenda
> tions#__cpp_range_based_for already so we might as well bump it.
> 
> I'm not sure what you would actually do with the information tho - there's
> not really any benefit to writing the loop two ways, just write it the way
> that works.

#if __cpp_range_based_for <= 201603
#error "Your compiler is not supported."
#endif

I believe it's a valid approach to require the simpler lifetime rules and stop 
thinking about temporaries when using range-based for.

-- 
──────────────────────────────────────────────────────────────────────────
 Dr. Matthias Kretz                           https://mattkretz.github.io
 GSI Helmholtz Centre for Heavy Ion Research               https://gsi.de
 stdₓ::simd
──────────────────────────────────────────────────────────────────────────
-- 
SG10 mailing list
[email protected]
https://lists.isocpp.org/mailman/listinfo.cgi/sg10

Reply via email to