Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80889 - trunk/libs/date_time/test/gregorian
From: andrey.semashev_at_[hidden]
Date: 2012-10-06 13:46:27


Author: andysem
Date: 2012-10-06 13:46:27 EDT (Sat, 06 Oct 2012)
New Revision: 80889
URL: http://svn.boost.org/trac/boost/changeset/80889

Log:
Fixed compilation with MSVC.
Text files modified:
   trunk/libs/date_time/test/gregorian/testdate.cpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: trunk/libs/date_time/test/gregorian/testdate.cpp
==============================================================================
--- trunk/libs/date_time/test/gregorian/testdate.cpp (original)
+++ trunk/libs/date_time/test/gregorian/testdate.cpp 2012-10-06 13:46:27 EDT (Sat, 06 Oct 2012)
@@ -6,6 +6,7 @@
  */
 
 #include <iostream>
+#include <boost/cstdint.hpp>
 #include "boost/date_time/gregorian/gregorian.hpp"
 #include "../testfrmwk.hpp"
 
@@ -228,13 +229,13 @@
   // most of this testing is in the gregorian_calendar tests
   std::cout << d15.julian_day() << std::endl;
   check_equal("check julian day ", d15.julian_day(),
- static_cast<uint32_t>(2232400));
+ static_cast<boost::uint32_t>(2232400));
   check_equal("check modjulian day ", d15.modjulian_day(), -167601);
   date d16(2004,2,29);
   check_equal("check julian day ", d16.julian_day(),
- static_cast<uint32_t>(2453065));
+ static_cast<boost::uint32_t>(2453065));
   check_equal("check modjulian day ", d16.modjulian_day(),
- static_cast<uint32_t>(53064));
+ static_cast<boost::uint32_t>(53064));
 
   // most of this testing is in the gregorian_calendar tests
   date d31(2000, Jun, 1);


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