id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 18,lexical_cast fails in some cases,nobody,kevlin,"{{{ The following code causes a bad_lexical_cast exception std::string x=boost::lexical_cast(""""); Is this how lexical_cast should perform? An empty standard string also causes an exception std::string x=boost::lexical_cast(std::string()); I understand that the underlying stringstream causes this behavior but it does not seem to be intuitive. Calls like the ones above can occur when using member templates like the following class A { public: template std::string f(const T& value) { return boost::lexical_cast(value); } } Solutions to this problem are welcome. }}}",Bugs,closed,,lexical_cast,None,,Fixed,,