簡単なプログラムをコンパイルしようと思ったら下のようなエラーがでた。
error: new types may not be defined in a return type
原因がわからずあれこれ調べたら、こんな記述を発見。
That error is typically caused by forgetting a semicolon at the end of a class / struct / union...
その通りでした。classの最後のセミコロン点け忘れてた。萎え。