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.
about自動参照に問題があります。
about
const int i = 1; auto & ri1 = i; auto & ri2 = 1; //error
推定型が であるのに でri1 const intはないのはなぜri2ですか?
ri1
const int
ri2
ありがとう!
itypeconst intを持っているので、 type を1持っていintます。
i
1
int