This is GCC 7.4 running in C++14 mode:
size_t i = 8;
std::string strIndent { i, ' ' };
Looks fine, but I get back the warning:
AnalyticsDBI.cpp:538:48: warning: narrowing conversion of ‘i’ from ‘size_t {aka long unsigned int}’ to ‘char’ inside { } [-Wnarrowing]
std::string strIndent { i, ' ' };
This is a compiler bug? I can't understand how the compiler could select to wrong overload. Should be constructor 2, as shown here.