you can use boost::format, i.e.:
```cpp
const std::string number = boost::str(boost::format("%03u") % i);
```