Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 27
    Taking the Boost library for a single cast. :( Commented Jan 13, 2010 at 20:29
  • 22
    But if you're already using Boost, it's a freebie. Commented May 30, 2010 at 13:50
  • 12
    boost::lexical_cast is painfully slow. Do not use it if performance is important. Commented Nov 2, 2010 at 5:02
  • 10
    I think worrying about that is premature optimization in most cases. It wouldn't stop me from using it unless my profiler told me otherwise. Commented Nov 4, 2010 at 18:22
  • 15
    Painfully slow? Where did you get that? It actually performs rather well! boost.org/doc/libs/1_49_0/doc/html/boost_lexical_cast/… Commented Apr 27, 2012 at 23:34