4 Nov
2013
4 Nov
'13
11:27 a.m.
Rahul Mathur <srivmuk <at> gmail.com> writes:
TagName = TID + boost::lexical_cast<std::string>(TagID); // Should be as - Apple01
TagInitial = TagName + boost::lexical_cast<std::string>(Value); // Should be as -> Apple01000
int i = boost::lexical_cast<int>(TagInitial) + 1; // Should be as ->
Apple01001
TagUId = boost::lexical_cast<std::string>(i);
You cannot cast "Apple01000" to int. Try this: // Should be as -> Apple01001 TagUId = TagName + boost::lexical_cast<std::string>(++Value);