Modify

Ticket #6498 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

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

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

Change History

Changed 2 years ago by tjgolubi@…

Test program.

Changed 2 years ago by tjgolubi@…

gcc compiler errors

comment:1 Changed 2 years ago by tjgolubi@…

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

comment:2 Changed 2 years ago by viboes

  • Status changed from new to assigned
  • Milestone changed from Boost 1.49.0 to Boost 1.50.0

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

comment:3 Changed 2 years ago by viboes

Committed in trunk revision 77461.

comment:4 Changed 2 years ago by viboes

  • Status changed from assigned to closed
  • Resolution set to fixed

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.