title: How do I use boost::lexical_cast and std::boolalpha? i.e. boost::lexical_cast< bool >("true")
body: <p>I've seen some answers to other <code>boost::lexical_cast</code> questions that assert the following is possible:</p>
  
  <pre><code>bool b = boost::lexical_cast&lt; bool &gt;("true");
  </code></pre>
  
  <p>This doesn't work for me with g++ 4.4.3 boost 1.43. (Maybe it's true that it works on a platform where <code>std::boolalpha</code> is set by default)</p>
  
  <p><a href="https://stackoverflow.com/questions/3613284/c-stdstring-to-boolean">This</a> is a nice solution to the string to bool problem but it lacks input validation that boost::lexical_cast provides.</p>