5 Nov
2013
5 Nov
'13
3:55 a.m.
Thanks All. It worked finally.
On Mon, Nov 4, 2013 at 4:57 PM, Marcel Raad
Rahul Mathur
writes:
Apple01
TagName = TID + boost::lexical_caststd::string(TagID); // Should be as
TagInitial = TagName + boost::lexical_caststd::string(Value); // Should be as -> Apple01000
int i = boost::lexical_cast<int>(TagInitial) + 1; // Should be as ->
Apple01001
TagUId = boost::lexical_caststd::string(i);
You cannot cast "Apple01000" to int. Try this:
// Should be as -> Apple01001
TagUId = TagName + boost::lexical_caststd::string(++Value);
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users