title: how to passing a argument to this parameter?
body: <p>I defined a function at here</p>
  
  <pre><code>void PalindromeFinder::truncateToLargestPalindrome(string&amp; inputString)
  </code></pre>
  
  <p>and when I want to test this function I use</p>
  
  <pre><code>cout&lt;&lt;truncateToLargestPalindrome("djfklsevesdfjkf")&lt;&lt;endl;
  </code></pre>
  
  <p>then the compiler gave me this error</p>
  
  <pre><code>PalindromeFinder.cpp:19:36: error: non-const lvalue reference to type 'string'
    (aka 'basic_string&lt;char, char_traits&lt;char&gt;, allocator&lt;char&gt; &gt;') cannot
    bind to a value of unrelated type 'const char [8]'
  cout&lt;&lt;truncateToLargestPalindrome("racecar")&lt;&lt;endl;
                                 ^~~~~~~~~
  ./PalindromeFinder.h:22:45: note: passing argument to parameter here
  void truncateToLargestPalindrome(string&amp;);
  </code></pre>