auto による型推論(C++)では、参照型の変数を初期化子(C++)にした場合、参照は外れる。 初期化子が const 参照である場合も、まず参照が外れ、その後トップレベル const も外れる。 参照として保持したい場合は、auto& のように再度指定する必要がある。 関連 型推論(C++) 参考 https://www.learncpp.com/cpp-tutorial/type-deduction-with-pointers-references-and-const/