Opened 11 years ago
Closed 11 years ago
#6498 closed Bugs (fixed)
boost::ratio won't compile with default settings
Reported by: | Owned by: | viboes | |
---|---|---|---|
Milestone: | Boost 1.50.0 | Component: | ratio |
Version: | Boost 1.47.0 | Severity: | Problem |
Keywords: | ratio extensions | Cc: |
Description
Since 1.47.0, if I install boost on Ubuntu with bootstrap.sh and then just ./b2 stage and I compile with just
g++ -I BOOSTROOT test.cpp
With the following program:
#include <boost/ratio.hpp>
#include <iostream> #include <iomanip>
int main() {
typedef boost::ratio<3, 2> myRatio; std::cout << myRatio::num << '/' << myRatio::den << std::endl; return 0;
}
I get lots of compiler errors. Adding "-DBOOST_RATIO_EXTENSIONS" makes it compile okay.
Attachments (2)
Change History (6)
by , 11 years ago
comment:2 by , 11 years ago
Milestone: | Boost 1.49.0 → Boost 1.50.0 |
---|---|
Status: | new → assigned |
Sorry I missed this issue. I will take care of it soon.
comment:4 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Test program.