Jason Turner
Jason Turner
My personal history of attempting / desiring to build a computer game. * Animal name Game, ~1990 * Stan (QuickBASIC, source lost) (1994 ish) * TicTacToe / Lines and Boxes...
https://compiler-explorer.com/z/8xfs6ee9q
student asked about how to automatically transform lambda captures into views. We cannot quite do that, but we might be able to get close.
https://en.cppreference.com/w/cpp/language/attributes * Make sure to mention it is optional what a compiler does with them * mention which ones can/must be ignored if unrecognized * mention how to use compiler...
https://en.cppreference.com/w/cpp/container/span remember that subspan and substring are not length checking. be aware of lifetime concerns
https://en.cppreference.com/w/cpp/language/attributes/assume
https://compiler-explorer.com/z/ds4E9fGW1