176 Commits

Author SHA1 Message Date
Edward Diener
370d41a399 Merge remote-tracking branch 'remotes/origin/develop' boost-1.63.0 boost-1.62.0 2016-09-10 10:23:53 -04:00
Marshall Clow
c6ae67ffc4 Merge pull request #12 from geoffromer/develop
Drop using directive, and fully qualify std names.
2015-11-30 13:41:36 -08:00
Geoff Romer
1307b89a2f Drop using directive, and fully qualify std names.
Even with `using namespace std`, it's not safe to use names from std
without qualification in a header file, because the names may conflict
with names in the global namespace, leading to ambiguities.
2015-11-30 12:26:38 -08:00
Edward Diener
d64b2c1b71 Merge branch 'develop' boost-1.61.0 boost-1.60.0 2015-10-15 21:29:05 -04:00
Edward Diener
d2a6a5a436 Merge pull request #10 from mclow/develop
Remove use of deprecated macros in test
2015-09-11 18:37:18 -04:00
Marshall Clow
ae5aa0b0fc Remove use of deprecated macros in test 2015-09-11 15:26:47 -07:00
Edward Diener
6c1cad78a2 Merge pull request #6 from mlang/gcd_lcm
Support for gcd and lcm of rational numbers.
2015-08-27 12:57:37 -04:00
Edward Diener
e9e18ff591 Merge pull request #8 from MarcelRaad/patch-1
Fix test compile break
2015-08-27 12:17:55 -04:00
Marcel Raad
7459b2fe43 Fix test compile break
A semicolon is now required after BOOST_GLOBAL_FIXTURE because of 3f7216db3d.
2015-06-27 11:43:15 +02:00
Mario Lang
c90f4c9af8 Add tests for gcd and lcm on rationals. 2015-04-03 20:01:30 +02:00
Mario Lang
a5dfd176d3 Qualify to avoid ambiguities. 2015-04-03 20:01:06 +02:00
Marshall Clow
a69d2d9ea6 Merge pull request #3 from jzmaddock/boost_throw_exception
Boost throw exception.
@jzmaddock ; if you remind me tomorrow, I will merge to master. (after the tests cycle)
2015-04-01 19:25:41 -07:00
Marshall Clow
09ef5b4370 Merge pull request #2 from jzmaddock/constexpr-checks
Add constexpr usage checks.
@jzmaddock ; if you remind me tomorrow, I will merge to master. (after the tests cycle)
2015-04-01 19:24:12 -07:00
Marshall Clow
92a0f30c66 Merge pull request #1 from jzmaddock/patch-1
Update rational.hpp
Now I have write access ;-)
@jzmaddock ; if you remind me tomorrow, I will merge to master. (after the tests cycle)
2015-04-01 19:23:54 -07:00
jzmaddock
6f3a1702d6 Merge branch 'constexpr-checks' into boost_throw_exception 2015-03-31 12:17:08 +01:00
jzmaddock
c29fd7848e Move constexpr test cases into separate file. 2015-03-31 12:12:44 +01:00
Peter Dimov
78f2b483cb Merge branch 'develop' boost-1.59.0 boost-1.58.0 2015-01-29 16:06:21 +02:00
Peter Dimov
f41c8a3c79 Merge pull request #7 from awulkiew/patch-1
Replace while(true) with for(;;) to suppress compiler warning.
2015-01-29 16:03:46 +02:00
Adam Wulkiewicz
8ba6fb10c9 Replace while(true) with for(;;) to suppress compiler warning.
msvc warning C4127: conditional expression is constant
2015-01-28 23:59:38 +01:00
Peter Dimov
fb77fc9ea2 Merge branch 'develop' 2015-01-25 21:08:51 +02:00
Peter Dimov
6820bcb4e2 Merge pull request #5 from danieljames/metadata
Create metadata file.
2015-01-25 20:30:43 +02:00
Mario Lang
a5bfd77e52 Update for the move of common_factor_rt from math to integer. 2015-01-20 23:13:47 +01:00
Mario Lang
1673b917de Merge branch 'master' into gcd_lcm 2015-01-20 23:13:00 +01:00
Peter Dimov
48cc47c6d1 Merge branch 'develop' 2015-01-15 03:51:24 +02:00
Peter Dimov
b8ee36c542 Replaced math::gcd, lcm references to integer. 2015-01-15 03:50:48 +02:00
Peter Dimov
462293ae56 Merge branch 'develop'
Conflicts:
	include/boost/rational.hpp
	rational.html
	test/rational_test.cpp
2015-01-15 03:37:00 +02:00
Mario Lang
28ba48d2c9 Support for gcd and lcm of rational numbers. 2014-11-18 01:47:47 +01:00
Daniel James
38777534cc Add metadata file. 2014-08-18 15:10:02 +01:00
jzmaddock
bede51e319 We can have a throw expression in a converting constructor after all - fix so it works.
Also test that converting constructor does throw when expected.
2014-07-28 11:50:47 +01:00
jzmaddock
0d15c803b2 Merge branch 'constexpr-checks' into boost_throw_exception 2014-07-28 11:33:09 +01:00
jzmaddock
cdc63aee80 Add constexpr usage checks - without these we can't be sure that other changes don't break something. 2014-07-28 11:27:33 +01:00
jzmaddock
bf07b2f05d Use BOOST_THROW_EXCEPTION throughout.
Note that template converting constructor is now no longer constexpr - however that was always really the case since a function that potentially throws can't be used in a constexpr context anyway.
2014-07-28 11:18:52 +01:00
jzmaddock
5fddb3f889 Update rational.hpp
Access to the numerator and denominator is unnecessarily inefficient when using rational with multiprecision types (ie where copying is relatively expensive), this change returns const-references to numerator and denominator.  In all other respects existing code should be uneffected by this change.
2014-07-28 09:51:00 +01:00
Stephen Kelly
9ee8441000 Remove use of obsolete BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE{,_SPEC} macro.
[SVN r85896]
2013-09-25 10:29:44 +00:00
Daryle Walker
c7b0c7c41e Removed unneeded forward declarations, added defaulted parameter to private helper function; both suggested by Mario Lang
[SVN r85548]
2013-09-02 05:37:45 +00:00
Daryle Walker
2b307a4a18 Integrated Boost.Rational's sanity checks during assignment in the input operator, respecting IOStreams' exception policy
[SVN r85541]
2013-09-01 10:54:47 +00:00
Daryle Walker
5e8a48d030 Fixed normalization problem with Boost.Rational's "assign"; add check for negative values too large for normalization (refs #9067)
[SVN r85526]
2013-08-30 13:18:37 +00:00
Daryle Walker
d5319c0c14 Started modernizing Boost.Rational I/O (refs #7187)
[SVN r85519]
2013-08-30 00:22:01 +00:00
Daryle Walker
48d70b695d Make the I/O part of Boost.Rational conditional on the configuration flag BOOST_NO_IOSTREAM (refs #7250).
[SVN r85498]
2013-08-28 07:12:48 +00:00
Daryle Walker
2c1bfb7ed7 Added cross-instantiation constructor template, refs #9018.
[SVN r85484]
2013-08-27 10:35:26 +00:00
Daryle Walker
d9d55b3245 Add constexpr to some functions in Boost.Rational
[SVN r85454]
2013-08-25 08:36:27 +00:00
Daryle Walker
17c9349025 Merged [85417], [85418], and [85434] from trunk to release, fixing show-stoppers for Boost.Rational, like #5855 and a C++11 update for some test code
[SVN r85441]
boost-1.57.0 boost-1.56.0
2013-08-24 08:17:46 +00:00
Daryle Walker
ceee860166 Changed "not" to "!" for MSVC compatibility.
[SVN r85434]
2013-08-23 09:01:59 +00:00
Daryle Walker
674a61fabe Used static_cast to suppress a warning/error about a narrowing conversion. Fixes #5855.
[SVN r85418]
2013-08-21 23:24:54 +00:00
Daryle Walker
ab31654dd2 Changed the two std::numeric_limits specializations to insert the two new members added in C++11. (Boost.Test uses one of them in its C++11 code.)
[SVN r85417]
2013-08-21 21:07:29 +00:00
Steven Watanabe
91fc23c802 Implement rational<IntType>/IntType operations directly to reduce calls to gcd. Patch by Mario Lang.
[SVN r78537]
2012-05-22 02:07:33 +00:00
Gennadiy Rozental
aa401ee8d9 eliminated test_case_template.hpp
[SVN r74735]
2011-10-05 10:28:08 +00:00
Troy D. Straszheim
a23c6ef3a9 rm cmake from trunk. I'm not entirely sure this is necessary to satisfy the inspect script, but I'm not taking any chances, and it is easy to put back
[SVN r56942]
2009-10-17 02:07:38 +00:00
Troy D. Straszheim
9e13da68bd rm cmake from the release branch before it goes out broken. Policy dictates that you never commit to release, you commit to trunk and merge to release.
[SVN r56941]
2009-10-17 01:10:45 +00:00
Troy D. Straszheim
6a8aa28e52 Copyrights on CMakeLists.txt to keep them from clogging up the inspect
reports.  This is essentially the same commit as r55095 on the release
branch.



[SVN r55159]
2009-07-26 00:49:56 +00:00