title: ALL_OF invalid conversion from 'char' to 'const char*' [-fpermissive]
body: <p>I have a problem when I compile my code.</p>
  
  <pre><code>template&lt;class InputIterator, class UnaryPredicate&gt;
    bool all_of (InputIterator first, InputIterator last, UnaryPredicate pred)
  {
    while (first!=last) {
      if (!pred(*first)) return false;
      ++first;
    }
    return true;
  }
  </code></pre>
  
  <p>I took the code from <a href="http://www.cplusplus.com/reference/algorithm/all_of/?kw=all_of" rel="nofollow">http://www.cplusplus.com/reference/algorithm/all_of/?kw=all_of</a>.</p>
  
  <p>I'm using Code::blocks 12.11 and I have the following errors:</p>
  
  <blockquote>
    <p>C:\Users\PC-HP\Desktop\chiffre\romain\main.cpp||In instantiation of 'bool all_of(InputIterator, InputIterator, UnaryPredicate) [with InputIterator = __gnu_cxx::__normal_iterator >; UnaryPredicate = bool (*)(std::basic_string)]':|</p>
    
    <p>C:\Users\PC-HP\Desktop\chiffre\romain\main.cpp|84|required from here|</p>
    
    <p>C:\Users\PC-HP\Desktop\chiffre\romain\main.cpp|13|error: invalid conversion from 'char' to 'const char*' [-fpermissive]|</p>
    
    <p>c:\program files\codeblocks\mingw\bin..\lib\gcc\mingw32\4.7.1\include\c++\bits\basic_string.tcc|214|error:   initializing argument 1 of 'std::basic_string&lt;_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&amp;) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]' [-fpermissive]|</p>
    
    <p>||=== Build finished: 2 errors, 2 warnings (0 minutes, 1 seconds) ===|</p>
  </blockquote>
  
  <p>line 84:</p>
  
  <pre><code>while(!all_of(romain.begin(), romain.end(), IsRoman))
  </code></pre>
  
  <p>There is my entire code: <a href="http://pastebin.com/k0KYNB6H" rel="nofollow">http://pastebin.com/k0KYNB6H</a>
  I don't use <code>c++11</code>.</p>