diff options
author | jlam <jlam> | 2000-05-29 22:46:44 +0000 |
---|---|---|
committer | jlam <jlam> | 2000-05-29 22:46:44 +0000 |
commit | 003bff169f5bb3b1c8210c1bbdfdac74e20db660 (patch) | |
tree | d1d85326410d42d7a43c2536c90a9673a28fc4c9 /devel/boost/files | |
parent | 4b7e308286fbd5d622c90622c954d2d208bef927 (diff) | |
download | pkgsrc-003bff169f5bb3b1c8210c1bbdfdac74e20db660.tar.gz |
Update boost to 1.14.3 since old distfile is gone from master site.
* Remove limits and memory. Just depend on SGI STL package which has much
better versions of these files.
* Minor fixes and enhancements in the documentation.
Diffstat (limited to 'devel/boost/files')
-rw-r--r-- | devel/boost/files/Makefile | 4 | ||||
-rw-r--r-- | devel/boost/files/limits | 266 | ||||
-rw-r--r-- | devel/boost/files/md5 | 4 | ||||
-rw-r--r-- | devel/boost/files/memory | 100 |
4 files changed, 4 insertions, 370 deletions
diff --git a/devel/boost/files/Makefile b/devel/boost/files/Makefile index e9946cc6540..a0bb198ca1f 100644 --- a/devel/boost/files/Makefile +++ b/devel/boost/files/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2000/05/12 06:15:06 jlam Exp $ +# $NetBSD: Makefile,v 1.2 2000/05/29 22:46:44 jlam Exp $ CXX= c++ @@ -11,7 +11,7 @@ OBJS= ${SRCS:.cpp=.lo} LOBJS= ${OBJS:T} CXXFLAGS= # empty -CPPFLAGS+= -I${.CURDIR} +CPPFLAGS+= -I${.CURDIR} -I${LOCALBASE}/include/sgi-stl all: ${LIB} diff --git a/devel/boost/files/limits b/devel/boost/files/limits deleted file mode 100644 index 5b6af1d399e..00000000000 --- a/devel/boost/files/limits +++ /dev/null @@ -1,266 +0,0 @@ -/* $NetBSD: limits,v 1.1 2000/05/12 06:15:06 jlam Exp $ - * - * This file is a part of the ISO C++ standard, but is not present in current - * versions of NetBSD. The contents of this file should probably be wrapped - * in a check for the appropriate version of the GNU C++ compiler or library. - */ - -#ifndef STD_LIMITS -#define STD_LIMITS - -#include <cfloat> -#include <climits> - -namespace std { - -template <class T> -class numeric_limits { -public: - typedef T numeric_type; - - static const bool is_specialized = false; -}; - -template <> -class numeric_limits<char> { -public: - typedef char numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = (CHAR_MIN == SCHAR_MIN); - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return CHAR_MIN; } - inline static numeric_type max() throw() { return CHAR_MAX; } -}; - -template <> -class numeric_limits<signed char> { -public: - typedef char numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = true; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return SCHAR_MIN; } - inline static numeric_type max() throw() { return SCHAR_MAX; } -}; - -template <> -class numeric_limits<unsigned char> { -public: - typedef unsigned char numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = false; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return 0; } - inline static numeric_type max() throw() { return UCHAR_MAX; } -}; - -template <> -class numeric_limits<short> { -public: - typedef short numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = true; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return SHRT_MIN; } - inline static numeric_type max() throw() { return SHRT_MAX; } -}; - -template <> -class numeric_limits<unsigned short> { -public: - typedef short numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = false; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return 0; } - inline static numeric_type max() throw() { return USHRT_MAX; } -}; - -template <> -class numeric_limits<int> { -public: - typedef int numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = true; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return INT_MIN; } - inline static numeric_type max() throw() { return INT_MAX; } -}; - -template <> -class numeric_limits<unsigned int> { -public: - typedef unsigned int numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = false; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return 0; } - inline static numeric_type max() throw() { return UINT_MAX; } -}; - -template <> -class numeric_limits<long> { -public: - typedef long numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = true; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return LONG_MIN; } - inline static numeric_type max() throw() { return LONG_MAX; } -}; - -template <> -class numeric_limits<unsigned long> { -public: - typedef unsigned long numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = false; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return 0; } - inline static numeric_type max() throw() { return ULONG_MAX; } -}; - -template <> -class numeric_limits<long long> { -public: - typedef long long numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = true; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return LLONG_MIN; } - inline static numeric_type max() throw() { return LLONG_MAX; } -}; - -template <> -class numeric_limits<unsigned long long> { -public: - typedef unsigned long long numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = false; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return 0; } - inline static numeric_type max() throw() { return ULLONG_MAX; } -}; - -template <> -class numeric_limits<float> { -public: - typedef float numeric_type; - - static const bool is_specialized = true; - - static const int radix = FLT_RADIX; - static const int digits = FLT_MANT_DIG; - static const int digits10 = FLT_DIG; - - static const bool is_signed = true; - static const bool is_integer = false; - static const bool is_exact = false; - - inline static numeric_type min() throw() { return FLT_MIN; } - inline static numeric_type max() throw() { return FLT_MAX; } - - inline static numeric_type epsilon() throw() { return FLT_EPSILON; } - - static const int min_exponent = FLT_MIN_EXP; - static const int min_exponent10 = FLT_MIN_10_EXP; - static const int max_exponent = FLT_MAX_EXP; - static const int max_exponent10 = FLT_MAX_10_EXP; - - static const bool has_infinity = false; -}; - -template <> -class numeric_limits<double> { -public: - typedef double numeric_type; - - static const bool is_specialized = true; - - static const int digits = DBL_MANT_DIG; - static const int digits10 = DBL_DIG; - - static const bool is_signed = true; - static const bool is_integer = false; - static const bool is_exact = false; - - inline static numeric_type min() throw() { return DBL_MIN; } - inline static numeric_type max() throw() { return DBL_MAX; } - - inline static numeric_type epsilon() throw() { return DBL_EPSILON; } - - static const int min_exponent = DBL_MIN_EXP; - static const int min_exponent10 = DBL_MIN_10_EXP; - static const int max_exponent = DBL_MAX_EXP; - static const int max_exponent10 = DBL_MAX_10_EXP; -}; - -} // namespace std - -#endif // STD_LIMITS diff --git a/devel/boost/files/md5 b/devel/boost/files/md5 index 431ef3ff98e..bb4eef1b3e4 100644 --- a/devel/boost/files/md5 +++ b/devel/boost/files/md5 @@ -1,3 +1,3 @@ -$NetBSD: md5,v 1.1.1.1 2000/05/09 20:44:04 jlam Exp $ +$NetBSD: md5,v 1.2 2000/05/29 22:46:45 jlam Exp $ -MD5 (boost-1.14.1/boost_all.zip) = 95a55a34380bdeb66cdba6d8c5d70798 +MD5 (boost-1.14.3/boost_all.zip) = 92961172c2402bd22122750fac3741b7 diff --git a/devel/boost/files/memory b/devel/boost/files/memory deleted file mode 100644 index 7d2a34a810c..00000000000 --- a/devel/boost/files/memory +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 1997 - * Silicon Graphics Computer Systems, Inc. - * - * Permission to use, copy, modify, distribute and sell this software - * and its documentation for any purpose is hereby granted without fee, - * provided that the above copyright notice appear in all copies and - * that both that copyright notice and this permission notice appear - * in supporting documentation. Silicon Graphics makes no - * representations about the suitability of this software for any - * purpose. It is provided "as is" without express or implied warranty. - * - */ - -/* $NetBSD: memory,v 1.1 2000/05/12 06:15:06 jlam Exp $ - * - * Removed the #if 0'd code to enable auto_ptr. This interface and - * implementation matches the ISO C++ requirements. - */ - -#ifndef __SGI_STL_MEMORY -#define __SGI_STL_MEMORY - -#include <stl_algobase.h> -#include <stl_alloc.h> -#include <stl_construct.h> -#include <stl_tempbuf.h> -#include <stl_uninitialized.h> -#include <stl_raw_storage_iter.h> - -#ifdef __GNUC__ -# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8) -# define _MUTABLE_IS_KEYWORD -# define _EXPLICIT_IS_KEYWORD -# endif -#endif - -// Note: auto_ptr is commented out in this release because the details -// of the interface are still being discussed by the C++ standardization -// committee. It will be included once the iterface is finalized. - -#if defined(_MUTABLE_IS_KEYWORD) && defined(_EXPLICIT_IS_KEYWORD) && \ - defined(__STL_MEMBER_TEMPLATES) - -__STL_BEGIN_NAMESPACE - -template <class X> class auto_ptr { -private: - X* ptr; - mutable bool owns; -public: - typedef X element_type; - explicit auto_ptr(X* p = 0) __STL_NOTHROW : ptr(p), owns(p) {} - auto_ptr(const auto_ptr& a) __STL_NOTHROW : ptr(a.ptr), owns(a.owns) { - a.owns = 0; - } - template <class T> auto_ptr(const auto_ptr<T>& a) __STL_NOTHROW - : ptr(a.ptr), owns(a.owns) { - a.owns = 0; - } - - auto_ptr& operator=(const auto_ptr& a) __STL_NOTHROW { - if (&a != this) { - if (owns) - delete ptr; - owns = a.owns; - ptr = a.ptr; - a.owns = 0; - } - } - template <class T> auto_ptr& operator=(const auto_ptr<T>& a) __STL_NOTHROW { - if (&a != this) { - if (owns) - delete ptr; - owns = a.owns; - ptr = a.ptr; - a.owns = 0; - } - } - ~auto_ptr() { - if (owns) - delete ptr; - } - - X& operator*() const __STL_NOTHROW { return *ptr; } - X* operator->() const __STL_NOTHROW { return ptr; } - X* get() const __STL_NOTHROW { return ptr; } - X* release() const __STL_NOTHROW { owns = false; return ptr; } -}; - -__STL_END_NAMESPACE -#endif /* mutable && explicit && member templates */ - - -#endif /* __SGI_STL_MEMORY */ - - -// Local Variables: -// mode:C++ -// End: |