LINUX.ORG.RU

История изменений

Исправление ox55ff, (текущая версия) :

QString нет, поэтому std::string.
https://cppinsights.io/s/e8af8c89

{
  const char *const __list21[2]{"localhost", "test"};
  std::initializer_list<const char *> && __range1 = std::initializer_list<const char *>{__list21, 2};
  const char *const * __begin1 = __range1.begin();
  const char *const * __end1 = __range1.end();
  for(; __begin1 != __end1; ++__begin1) {
    const std::basic_string<char> & host = std::basic_string<char>(*__begin1, std::allocator<char>());
  }
}

Исходная версия ox55ff, :

https://cppinsights.io/s/e8af8c89

{
  const char *const __list21[2]{"localhost", "test"};
  std::initializer_list<const char *> && __range1 = std::initializer_list<const char *>{__list21, 2};
  const char *const * __begin1 = __range1.begin();
  const char *const * __end1 = __range1.end();
  for(; __begin1 != __end1; ++__begin1) {
    const std::basic_string<char> & host = std::basic_string<char>(*__begin1, std::allocator<char>());
  }
}