Boost logo

Boost Users :

Subject: [Boost-users] [boost format] Not getting expected errors
From: Rob Conde (rob.conde_at_[hidden])
Date: 2013-07-12 14:18:06


Hello,
                I'm doing:

string myString = (boost::format("%i") % 1.1).str();

I would expect that to either throw an error (preferred) or cast to an int and then format. I'm seeing a similar issue with %x and %o etc. Any thoughts?

Rob Conde



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net