mysqlpp::String本身具有操作符“operator int()”,所以可以直接赋值给int类型的变量。
http://stackoverflow.com/questions/2126380/converting-mysqlppstring-to-c-int
亮点:
mysqlpp::String has operator int() so your code snippet should work. What problem are you having with it?
If you want to be more explicit, you can use mysqlpp::String's conv function:
int i = futureItemsets[j].conv<int>(0);
timeFrameItemsets.push_back(i);
HxLauncher: Launch Android applications by voice commands