Modify

Opened 6 years ago

Closed 6 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@… 6 years ago.
Test program.
test1.txt (12.4 KB) - added by tjgolubi@… 6 years ago.
gcc compiler errors

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by tjgolubi@…

Attachment: test1.cpp added

Test program.

Changed 6 years ago by tjgolubi@…

Attachment: test1.txt added

gcc compiler errors

comment:1 Changed 6 years ago by tjgolubi@…

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

comment:2 Changed 6 years ago by viboes

Milestone: Boost 1.49.0Boost 1.50.0
Status: newassigned

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

comment:3 Changed 6 years ago by viboes

Committed in trunk revision 77461.

comment:4 Changed 6 years ago by viboes

Resolution: fixed
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.