free hit counter

Tuesday, January 31, 2006

boost::format

boost::format is pretty dang cool. But they don't do a good job in their examples illustrating the all important str() function. So here it is:

std::string portKeyString= (boost::format("Vid_%04x&Pid_%04x&Mi_00\\%s_00\\Device Parameters\\") % vid % pid % ser).str();

0 Comments:

Post a Comment

<< Home