Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-01-23 14:57:01


The following patch has been applied to boost/integer_traits.hpp to make it
work properly on FreeBSD with GCC 2.95.x and 3.0.x:

        Doug

Index: integer_traits.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/integer_traits.hpp,v
retrieving revision 1.17
diff -c -3 -p -r1.17 integer_traits.hpp
*** integer_traits.hpp 2001/11/18 17:37:21 1.17
--- integer_traits.hpp 2002/01/23 19:53:21
*************** class integer_traits<wchar_t>
*** 93,103 ****
  #elif defined(__BORLANDC__) || defined(__CYGWIN__) || defined(__MINGW32__)
||
(defined(__BEOS__) && defined(__GNUC__))
      // No WCHAR_MIN and WCHAR_MAX, whar_t is short and unsigned:
      public detail::integer_traits_base<wchar_t, 0, 0xffff>
! #elif (defined(__sgi) && (!defined(__SGI_STL_PORT) || __SGI_STL_PORT <
0x400)) || (defined __APPLE__) || (defined(__hpux) && defined(__GNUC__) &&
(__GNUC__ == 3) && !defined(__SGI_STL_PORT))
      // No WCHAR_MIN and WCHAR_MAX, wchar_t has the same range as int.
      // - SGI MIPSpro with native library
      // - gcc 3.x on HP-UX
      // - Mac OS X with native library
      public detail::integer_traits_base<wchar_t, INT_MIN, INT_MAX>
  #elif defined(__hpux) && defined(__GNUC__) && (__GNUC__ == 2) &&
!defined(__SGI_STL_PORT)
      // No WCHAR_MIN and WCHAR_MAX, wchar_t has the same range as unsigned
int.--- 93,104 ----
  #elif defined(__BORLANDC__) || defined(__CYGWIN__) || defined(__MINGW32__)
||
(defined(__BEOS__) && defined(__GNUC__))
      // No WCHAR_MIN and WCHAR_MAX, whar_t is short and unsigned:
      public detail::integer_traits_base<wchar_t, 0, 0xffff>
! #elif (defined(__sgi) && (!defined(__SGI_STL_PORT) || __SGI_STL_PORT <
0x400)) || (defined __APPLE__) || (defined(__FreeBSD__) && defined(__GNUC__))
|| (defined(__hpux) && defined(__GNUC__) && (__GNUC__ == 3) &&
!defined(__SGI_STL_PORT))
      // No WCHAR_MIN and WCHAR_MAX, wchar_t has the same range as int.
      // - SGI MIPSpro with native library
      // - gcc 3.x on HP-UX
      // - Mac OS X with native library
+ // - gcc on FreeBSD
      public detail::integer_traits_base<wchar_t, INT_MIN, INT_MAX>
  #elif defined(__hpux) && defined(__GNUC__) && (__GNUC__ == 2) &&
!defined(__SGI_STL_PORT)
      // No WCHAR_MIN and WCHAR_MAX, wchar_t has the same range as unsigned
int.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk