Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67684 - trunk/libs/ratio/example
From: vicente.botet_at_[hidden]
Date: 2011-01-05 13:12:34


Author: viboes
Date: 2011-01-05 13:11:43 EST (Wed, 05 Jan 2011)
New Revision: 67684
URL: http://svn.boost.org/trac/boost/changeset/67684

Log:
Boost.Ratio: Try to solve issue

 Test output: Sandia-pgi-10.1 - ratio - si_physics / pgi-10.1
Rev 67674 / Wed, 5 Jan 2011 08:08:45 +0000
Report Time: Wed, 5 Jan 2011 16:18:46 +0000

Compile [2011-01-05 10:54:00 UTC]: fail

    "/sierra/Sntools/extras/compilers/pgi/linux86-64/10.1/bin/pgCC" -INLINE:none -Wc,-a --brief_diagnostics --error_limit1 --compress_names --diag_suppress450 --no_using_std --zc_eh -Kieee -fpic -gopt -DBOOST_ALL_NO_LIB=1 -DBOOST_ENABLE_WARNINGS -DBOOST_MPL_NEXT_PRIOR_EXT -DBOOST_RATIO_USES_MPL_ASSERT -D__need_IOV_MAX -I".." -c -o "/scratch/boost/results/boost/bin.v2/libs/ratio/test/si_physics.test/pgi-10.1/debug/si_physics.o" "../libs/ratio/test/../example/si_physics.cpp"

"../libs/ratio/test/../example/config.hpp", line 20 (col. 3): warning: unrecognized preprocessing directive
"../libs/ratio/test/../example/config.hpp", line 22 (col. 3): warning: unrecognized preprocessing directive
"../libs/ratio/test/../example/config.hpp", line 24 (col. 3): warning: unrecognized preprocessing directive
"../libs/ratio/test/../example/duration.hpp", line 498 (col. 20): error: identifier "duration_cast" is undefined
Error limit reached.
1 error detected in the compilation of "../libs/ratio/test/../example/si_physics.cpp".
Compilation terminated.

Text files modified:
   trunk/libs/ratio/example/duration.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/ratio/example/duration.hpp
==============================================================================
--- trunk/libs/ratio/example/duration.hpp (original)
+++ trunk/libs/ratio/example/duration.hpp 2011-01-05 13:11:43 EST (Wed, 05 Jan 2011)
@@ -495,7 +495,7 @@
             // have to support both approaches.
             ;
 #else
- : rep_(duration_cast<duration>(d).count()) {}
+ : rep_(chrono::duration_cast<duration>(d).count()) {}
 #endif
 
         // observer


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk