Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67719 - trunk/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2011-01-06 09:31:41


Author: viboes
Date: 2011-01-06 09:31:37 EST (Thu, 06 Jan 2011)
New Revision: 67719
URL: http://svn.boost.org/trac/boost/changeset/67719

Log:
Boost.Chrono: Try to solve issue

 Test output: daw-msvc71 - chrono - arithmetic_pass_shared / msvc-7.1
Rev 67704 / Thu, 6 Jan 2011 02:00:52 +0000
Report Time: Thu, 6 Jan 2011 12:15:03 +0000

Compile [2011-01-06 04:45:50 UTC]: fail

    call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul
cl /Zm800 -nologo @"C:\boost_testing_trunk\results\boost\bin.v2\libs\chrono\test\arithmetic_pass_shared.test\msvc-7.1\debug\asynch-exceptions-on\threading-multi\duration\arithmetic_pass.obj.rsp"

arithmetic_pass.cpp
..\boost\chrono\duration.hpp(443) : error C2039: 'duration_cast' : is not a member of 'boost'
        ..\libs\chrono\test\duration\arithmetic_pass.cpp(69) : see reference to function template instantiation 'boost::chrono::duration<Rep>::duration<boost::int_least32_t,boost::ratio<N>>(const boost::chrono::duration<boost::int_least32_t,Period> &,boost::enable_if_c<B,T>::type *)' being compiled
        with
        [
            Rep=boost::int_least64_t,
            N=0x03c,
            Period=boost::ratio<0x03c>,
            B=true,
            T=void
        ]
..\boost\chrono\duration.hpp(443) : error C2275: 'boost::chrono::duration<Rep>' : illegal use of this type as an expression
        with
        [
            Rep=boost::int_least64_t
        ]
..\boost\chrono\duration.hpp(443) : fatal error C1903: unable to recover from previous error(s); stopping compilation

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

Modified: trunk/boost/chrono/duration.hpp
==============================================================================
--- trunk/boost/chrono/duration.hpp (original)
+++ trunk/boost/chrono/duration.hpp 2011-01-06 09:31:37 EST (Thu, 06 Jan 2011)
@@ -458,7 +458,7 @@
             // have to support both approaches.
             ;
 #else
- : rep_(boost::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