title: How to combine C++ strings and Arduino Strings?
body: <p>I have been writing a library for my project (for now I am using Arduino). The problem that I have is that <code>string</code> in C++ and in Arduino differ.</p>
  
  <p>That is, I would like my library to be independent of Arduino, so I am using <code>#include &lt;string&gt;</code> and later declaring <code>string s;</code>. However in Arduino strings are defined by Arduino and declared <code>String s2</code>.</p>
  
  <p>When I include my library to the sketch I get <code>error: string: No such file or directory</code> on the line where I try to include C++ string library (<code>#include &lt;string&gt;</code>).</p>
  
  <p>Is there a way to make Arduino use C++ string library, or convert string to Arduino string when compiling?</p>