Subject: [Boost-bugs] [Boost C++ Libraries] #6498: boost::ratio won't compile with default settings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-31 01:09:28
#6498: boost::ratio won't compile with default settings
---------------------------------+------------------------------------------
Reporter: tjgolubi@⦠| Owner: viboes
Type: Bugs | Status: new
Milestone: Boost 1.49.0 | Component: ratio
Version: Boost 1.47.0 | Severity: Problem
Keywords: ratio extensions |
---------------------------------+------------------------------------------
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6498> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC