title: No instance of constructor error in CPP
body: <p>I tried to create a function to identify matched line from a string. My whole string is saved in <strong>strStart</strong> and <strong>strToMatch</strong> contains the search string. Following is my code</p>
  
  <pre><code>void ExpertContextUser::removeMatchedString() {
          String line;
          String strStart="Testing\nReturns\nrelated\nresources";
          String strToMatch="Test";
          istringstream streamAddtText(strStart);
          while(std::getline(streamAddtText, line)) {
                  cout &lt;&lt; line &lt;&lt; "Function" &lt;&lt; endl;
                  if(line.index(strToMatch) &gt; 0) {
                          TraceMessage &lt;&lt;" Test Success" &lt;&lt; endl;
                  }
          }
  }
  </code></pre>
  
  <p>when i am compiling my code, i am getting following error</p>
  
  <blockquote>
    <p>"../user_model_impl.cxx", line 234: error #2289: no instance of constructor
              "std::basic_istringstream&lt;_CharT, _Traits,
              _Allocator>::basic_istringstream [with _CharT=char,
              _Traits=std::char_traits, _Allocator=std::allocator]"
              matches the argument list
                argument types are: (RWCString)
            istringstream streamAddtText(strStart);</p>
  </blockquote>
  
  <p>I am unable to find reasons for this error.</p>