ラムダ式で再帰をしたい場合は,戻り値の型を明示した方が安全そう. 戻り値の型を明示しない次のコードは正常に動作する. 正常に動作するラムダ式再帰 一方,14-15行目を削除した次のコードは怒られる. 怒られるラムダ式再帰 error: use of ‘main()::<lambda(auto:23, int, int)> [with auto:23 = main()::<lambda(auto:23, int, int)>]’ before deduction of ‘auto’ 17 | f(f,nxt,now); | ~^~~~~~~~~~~ エラー内容は「'auto'の推論前にautoを…