mirror of
https://github.com/boostorg/rational.git
synced 2026-01-19 04:42:09 +00:00
Tweaked files to pass inspection report; one file had some min/max violations; but all had to have 'boostinspect:nolicense' set because a copyrighter, Paul Moore, has disappeared, so his files can never be changed to the main Boost license
[SVN r47847]
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
// in all copies. This software is provided "as is" without express or
|
||||
// implied warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// boostinspect:nolicense (don't complain about the lack of a Boost license)
|
||||
// (Paul Moore hasn't been in contact for years, so there's no way to change the
|
||||
// license.)
|
||||
|
||||
// See http://www.boost.org/libs/rational for documentation.
|
||||
|
||||
// Credits:
|
||||
|
||||
@@ -37,10 +37,11 @@ to use one of the more specialist packages available.</p>
|
||||
|
||||
<p>Revised December 14, 1999</p>
|
||||
|
||||
<p>© Copyright Paul Moore 1999. Permission to copy, use, modify, sell
|
||||
<p>© Copyright Paul Moore 1999. Permission to copy, use, modify, sell
|
||||
and distribute this document is granted provided this copyright notice
|
||||
appears in all copies. This document is provided "as is" without
|
||||
express or implied warranty, and with no claim as to its suitability for
|
||||
any purpose.</p>
|
||||
<!-- boostinspect:nolicense (can't find Paul Moore to change license) -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -671,10 +671,11 @@ be used in the same Boolean contexts as the built-in numeric types, in December
|
||||
|
||||
<p>Revised November 5, 2006</p>
|
||||
|
||||
<p>© Copyright Paul Moore 1999-2001; © Daryle Walker 2005. Permission to
|
||||
copy, use, modify, sell and distribute this document is granted provided this
|
||||
<p>© Copyright Paul Moore 1999-2001; © Daryle Walker 2005. Permission
|
||||
to copy, use, modify, sell and distribute this document is granted provided this
|
||||
copyright notice appears in all copies. This document is provided "as
|
||||
is" without express or implied warranty, and with no claim as to its
|
||||
suitability for any purpose.</p>
|
||||
<!-- boostinspect:nolicense (can't find Paul Moore to change license) -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
// appears in all copies. This software is provided "as is" without express or
|
||||
// implied warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// boostinspect:nolicense (don't complain about the lack of a Boost license)
|
||||
// (Paul Moore hasn't been in contact for years, so there's no way to change the
|
||||
// license.)
|
||||
|
||||
// Revision History
|
||||
// 14 Dec 99 Initial version
|
||||
|
||||
|
||||
@@ -13,6 +13,11 @@
|
||||
* extended, by Paul Moore, with permission.
|
||||
*/
|
||||
|
||||
// boostinspect:nolicense (don't complain about the lack of a Boost license)
|
||||
// (Stephen Silver hasn't been contacted yet for permission to change the
|
||||
// license. If Paul Moore's permission is also needed, then that's a problem
|
||||
// since he hasn't been in contact for years.)
|
||||
|
||||
// Revision History
|
||||
// 05 Nov 06 Add testing of zero-valued denominators & divisors; casting with
|
||||
// types that are not implicitly convertible (Daryle Walker)
|
||||
@@ -26,6 +31,8 @@
|
||||
|
||||
#define BOOST_TEST_MAIN "Boost::Rational unit tests"
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/limits.hpp>
|
||||
#include <boost/mpl/list.hpp>
|
||||
#include <boost/operators.hpp>
|
||||
#include <boost/preprocessor/stringize.hpp>
|
||||
@@ -40,7 +47,6 @@
|
||||
#include <climits>
|
||||
#include <iostream>
|
||||
#include <istream>
|
||||
#include <limits>
|
||||
#include <ostream>
|
||||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
@@ -227,8 +233,10 @@ class numeric_limits< MyInt >
|
||||
public:
|
||||
static const bool is_specialized = limits_type::is_specialized;
|
||||
|
||||
static MyInt min() throw() { return limits_type::min(); }
|
||||
static MyInt max() throw() { return limits_type::max(); }
|
||||
static MyInt min BOOST_PREVENT_MACRO_SUBSTITUTION () throw() { return
|
||||
limits_type::min BOOST_PREVENT_MACRO_SUBSTITUTION (); }
|
||||
static MyInt max BOOST_PREVENT_MACRO_SUBSTITUTION () throw() { return
|
||||
limits_type::max BOOST_PREVENT_MACRO_SUBSTITUTION (); }
|
||||
|
||||
static const int digits = limits_type::digits;
|
||||
static const int digits10 = limits_type::digits10;
|
||||
@@ -273,8 +281,10 @@ class numeric_limits< MyOverflowingUnsigned >
|
||||
public:
|
||||
static const bool is_specialized = limits_type::is_specialized;
|
||||
|
||||
static MyOverflowingUnsigned min() throw() { return limits_type::min(); }
|
||||
static MyOverflowingUnsigned max() throw() { return limits_type::max(); }
|
||||
static MyOverflowingUnsigned min BOOST_PREVENT_MACRO_SUBSTITUTION () throw()
|
||||
{ return limits_type::min BOOST_PREVENT_MACRO_SUBSTITUTION (); }
|
||||
static MyOverflowingUnsigned max BOOST_PREVENT_MACRO_SUBSTITUTION () throw()
|
||||
{ return limits_type::max BOOST_PREVENT_MACRO_SUBSTITUTION (); }
|
||||
|
||||
static const int digits = limits_type::digits;
|
||||
static const int digits10 = limits_type::digits10;
|
||||
|
||||
Reference in New Issue
Block a user