Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58055 - in trunk: boost/config/compiler libs/config/test
From: john_at_[hidden]
Date: 2009-11-30 08:47:42


Author: johnmaddock
Date: 2009-11-30 08:47:41 EST (Mon, 30 Nov 2009)
New Revision: 58055
URL: http://svn.boost.org/trac/boost/changeset/58055

Log:
Update test for BOOST_NO_INTEGRAL_INT64_T.
Set define for Borland/Codegear compilers.
Text files modified:
   trunk/boost/config/compiler/borland.hpp | 2 +-
   trunk/boost/config/compiler/codegear.hpp | 1 +
   trunk/libs/config/test/boost_no_integral_int64_t.ipp | 4 +---
   3 files changed, 3 insertions(+), 4 deletions(-)

Modified: trunk/boost/config/compiler/borland.hpp
==============================================================================
--- trunk/boost/config/compiler/borland.hpp (original)
+++ trunk/boost/config/compiler/borland.hpp 2009-11-30 08:47:41 EST (Mon, 30 Nov 2009)
@@ -66,7 +66,6 @@
 
 // Borland C++ Builder 6 and below:
 #if (__BORLANDC__ <= 0x564)
-# define BOOST_NO_INTEGRAL_INT64_T
 
 # ifdef NDEBUG
       // fix broken <cstring> so that Boost.test works:
@@ -121,6 +120,7 @@
 #endif
 
 // Borland C++ Builder 2008 and below:
+# define BOOST_NO_INTEGRAL_INT64_T
 # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
 # define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS
 # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS

Modified: trunk/boost/config/compiler/codegear.hpp
==============================================================================
--- trunk/boost/config/compiler/codegear.hpp (original)
+++ trunk/boost/config/compiler/codegear.hpp 2009-11-30 08:47:41 EST (Mon, 30 Nov 2009)
@@ -30,6 +30,7 @@
 
 // CodeGear C++ Builder 2009
 #if (__CODEGEARC__ <= 0x613)
+# define BOOST_NO_INTEGRAL_INT64_T
 # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
 # define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS
 # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS

Modified: trunk/libs/config/test/boost_no_integral_int64_t.ipp
==============================================================================
--- trunk/libs/config/test/boost_no_integral_int64_t.ipp (original)
+++ trunk/libs/config/test/boost_no_integral_int64_t.ipp 2009-11-30 08:47:41 EST (Mon, 30 Nov 2009)
@@ -43,9 +43,7 @@
 
 int test()
 {
- llt<mask> m;
- (void)m;
- return 0;
+ return llt<mask>::value != (1uLL << 50);
 }
 
 }


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