patch-dic_header_cpp 1.0 KB

123456789101112131415161718
  1. $OpenBSD: patch-dic_header_cpp,v 1.1 2017/06/03 13:03:34 espie Exp $
  2. You can't take a ref to a vector<bool> element in a portable manner.
  3. Index: dic/header.cpp
  4. --- dic/header.cpp.orig
  5. +++ dic/header.cpp
  6. @@ -675,8 +675,8 @@ void Header::print(ostream &out) const
  7. fmter % centerAndConvert(wstring(1, m_letters[i]), sz("Letter"));
  8. fmter % centerAndConvert(str(wformat(L"%1%") % m_points[i]), sz("Points"));
  9. fmter % centerAndConvert(str(wformat(L"%1%") % m_frequency[i]), sz("Frequency"));
  10. - fmter % centerAndConvert(str(wformat(L"%1%") % m_vowels[i]), sz("Vowel"));
  11. - fmter % centerAndConvert(str(wformat(L"%1%") % m_consonants[i]), sz("Consonant"));
  12. + fmter % centerAndConvert(str(wformat(L"%1%") % int(m_vowels[i])), sz("Vowel"));
  13. + fmter % centerAndConvert(str(wformat(L"%1%") % int(m_consonants[i])), sz("Consonant"));
  14. map<wchar_t, vector<wstring> >::const_iterator it =
  15. m_displayAndInputData.find(m_letters[i]);
  16. if (it != m_displayAndInputData.end())