title: Better way to convert const wchar_t * to const std::basic_string<char_t>
body: <p>I am wondering if there is easier way (less verbose) to convert <code>const char_t*</code> to <code>std::string_t</code> rather than below:</p>
  
  <pre><code>typedef wchar_t  char_t;
  typedef basic_string&lt;char_t&gt; string_t;
  
  std::wstring ws(script_-&gt;GetName());  //GetName() returns const char_t*
  const std::string wsStr(ws.begin(), ws.end());
  const string_t script_name(wsStr.begin(), wsStr.end());
  </code></pre>
  
  <p>Any help would be appreciated.</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>#ifdef OS_WIN
  #include &lt;tchar.h&gt;
  typedef wchar_t  char_t;
  #define CHAR_WIDE
  #else
  typedef char char_t;
  </code></pre>