次のプログラムは、エラーなしでコンパイルまたはGCC 4.8.1、 -Wall -std=c++11と警告:this question 1として error: non-type template argument evaluates to -1, which cannot be narrowed to type 'unsigned int' [-Wc++11-narrowing] が、それは にな
中に狭く防ぐために、中括弧を使用して変数も? int i{1}; // initialize i to 1
double d{2.0}; // initialize d to 2.0
i = {2}; // assign value 2 to i
i = {d}; // error: narrowing from double to int
割り当てに中括弧を使用しない理由はありま