Opened 11 years ago

Closed 11 years ago

#6498 closed Bugs (fixed)

boost::ratio won't compile with default settings

Reported by: tjgolubi@… 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)

test1.cpp (198 bytes ) - added by tjgolubi@… 11 years ago.
Test program.
test1.txt (12.4 KB ) - added by tjgolubi@… 11 years ago.
gcc compiler errors

Download all attachments as: .zip

Change History (6)

by tjgolubi@…, 11 years ago

Attachment: test1.cpp added

Test program.

by tjgolubi@…, 11 years ago

Attachment: test1.txt added

gcc compiler errors

comment:1 by tjgolubi@…, 11 years ago

g++ version Ubuntu-Linaro 4.6.1-9ubuntu3 64-bit OS

comment:2 by viboes, 11 years ago

Milestone: Boost 1.49.0Boost 1.50.0
Status: newassigned

Sorry I missed this issue. I will take care of it soon.

comment:3 by viboes, 11 years ago

Committed in trunk revision 77461.

comment:4 by viboes, 11 years ago

Resolution: fixed
Status: assignedclosed

(In [77692]) Ratio: Fix #6498+merge from trunk

Note: See TracTickets for help on using tickets.