Thanks All. It worked finally.


On Mon, Nov 4, 2013 at 4:57 PM, Marcel Raad <raad@teamviewer.com> wrote:
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);

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users