Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
たとえば、autoどのタイプになるかわからないため、タイプの変数が必要でした。
auto
クラス/構造体宣言で宣言しようとすると、次のエラーが発生します。
auto タイプを推測できません。初期化子が必要
それを回避する方法はありますか?
struct Timer { auto start; };