This code works fine:
double a =2.12345;
int b{a}; // According to primer error: narrowing conversion required
int c(a); //This is fine
Is it something which I am missing? For me when a float/double is assigned to int the values on left of the decimal are printed (floor value). Primer says error.