From a102f3b783dec236e9a733f5a5338efce3ef8319 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Mon, 3 Sep 2018 15:01:15 +0200 Subject: Remove trailing whitespace for all files in the repository. --- libdevcore/Exceptions.cpp | 2 +- ...ultiprecision_number_compare_bug_workaround.hpp | 68 +++++++++++----------- 2 files changed, 35 insertions(+), 35 deletions(-) (limited to 'libdevcore') diff --git a/libdevcore/Exceptions.cpp b/libdevcore/Exceptions.cpp index 97f03f6e..cff5abf4 100644 --- a/libdevcore/Exceptions.cpp +++ b/libdevcore/Exceptions.cpp @@ -25,7 +25,7 @@ char const* Exception::what() const noexcept // Return the comment if available. if (string const* cmt = comment()) return cmt->data(); - + // Fallback to base what(). // Boost accepts nullptr, but the C++ standard doesn't // and crashes on some platforms. diff --git a/libdevcore/boost_multiprecision_number_compare_bug_workaround.hpp b/libdevcore/boost_multiprecision_number_compare_bug_workaround.hpp index dae591df..2568e17d 100644 --- a/libdevcore/boost_multiprecision_number_compare_bug_workaround.hpp +++ b/libdevcore/boost_multiprecision_number_compare_bug_workaround.hpp @@ -1,8 +1,8 @@ -// This is a copy of boost/multiprecision/detail/number_compare.hpp from boost 1.59 to replace buggy version from 1.58. +// This is a copy of boost/multiprecision/detail/number_compare.hpp from boost 1.59 to replace buggy version from 1.58. #ifdef BOOST_MP_COMPARE_HPP -#error This bug workaround header must be included before original boost/multiprecision/detail/number_compare.hpp +#error This bug workaround header must be included before original boost/multiprecision/detail/number_compare.hpp #endif /////////////////////////////////////////////////////////////////////////////// @@ -150,11 +150,11 @@ template struct is_valid_mixed_compare, number > : public mpl::false_ {}; template -struct is_valid_mixed_compare, expression > +struct is_valid_mixed_compare, expression > : public mpl::bool_, number >::value> {}; template -struct is_valid_mixed_compare, number > +struct is_valid_mixed_compare, number > : public mpl::bool_, number >::value> {}; template @@ -196,7 +196,7 @@ inline bool operator == (const number& a, const nu return eval_eq(a.backend(), b.backend()); } template -inline typename enable_if_c, Arithmetic>::value, bool>::type +inline typename enable_if_c, Arithmetic>::value, bool>::type operator == (const number& a, const Arithmetic& b) { using default_ops::eval_eq; @@ -204,7 +204,7 @@ inline typename enable_if_c::canonical_value(b)); } template -inline typename enable_if_c, Arithmetic>::value, bool>::type +inline typename enable_if_c, Arithmetic>::value, bool>::type operator == (const Arithmetic& a, const number& b) { using default_ops::eval_eq; @@ -212,7 +212,7 @@ inline typename enable_if_c::canonical_value(a)); } template -inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type +inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type operator == (const Arithmetic& a, const detail::expression& b) { typedef typename detail::expression::result_type result_type; @@ -222,7 +222,7 @@ inline typename enable_if_c -inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type +inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type operator == (const detail::expression& a, const Arithmetic& b) { typedef typename detail::expression::result_type result_type; @@ -232,7 +232,7 @@ inline typename enable_if_c -inline typename enable_if::result_type, typename detail::expression::result_type>, bool>::type +inline typename enable_if::result_type, typename detail::expression::result_type>, bool>::type operator == (const detail::expression& a, const detail::expression& b) { using default_ops::eval_eq; @@ -250,7 +250,7 @@ inline bool operator != (const number& a, const nu return !eval_eq(a.backend(), b.backend()); } template -inline typename enable_if_c, Arithmetic>::value, bool>::type +inline typename enable_if_c, Arithmetic>::value, bool>::type operator != (const number& a, const Arithmetic& b) { using default_ops::eval_eq; @@ -258,7 +258,7 @@ inline typename enable_if_c::canonical_value(b)); } template -inline typename enable_if_c, Arithmetic>::value, bool>::type +inline typename enable_if_c, Arithmetic>::value, bool>::type operator != (const Arithmetic& a, const number& b) { using default_ops::eval_eq; @@ -266,7 +266,7 @@ inline typename enable_if_c::canonical_value(a)); } template -inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type +inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type operator != (const Arithmetic& a, const detail::expression& b) { typedef typename detail::expression::result_type result_type; @@ -276,7 +276,7 @@ inline typename enable_if_c -inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type +inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type operator != (const detail::expression& a, const Arithmetic& b) { typedef typename detail::expression::result_type result_type; @@ -286,7 +286,7 @@ inline typename enable_if_c -inline typename enable_if::result_type, typename detail::expression::result_type>, bool>::type +inline typename enable_if::result_type, typename detail::expression::result_type>, bool>::type operator != (const detail::expression& a, const detail::expression& b) { using default_ops::eval_eq; @@ -304,7 +304,7 @@ inline bool operator < (const number& a, const num return eval_lt(a.backend(), b.backend()); } template -inline typename enable_if_c, Arithmetic>::value, bool>::type +inline typename enable_if_c, Arithmetic>::value, bool>::type operator < (const number& a, const Arithmetic& b) { using default_ops::eval_lt; @@ -312,7 +312,7 @@ inline typename enable_if_c::canonical_value(b)); } template -inline typename enable_if_c, Arithmetic>::value, bool>::type +inline typename enable_if_c, Arithmetic>::value, bool>::type operator < (const Arithmetic& a, const number& b) { using default_ops::eval_gt; @@ -320,7 +320,7 @@ inline typename enable_if_c::canonical_value(a)); } template -inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type +inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type operator < (const Arithmetic& a, const detail::expression& b) { typedef typename detail::expression::result_type result_type; @@ -330,7 +330,7 @@ inline typename enable_if_c -inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type +inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type operator < (const detail::expression& a, const Arithmetic& b) { typedef typename detail::expression::result_type result_type; @@ -340,7 +340,7 @@ inline typename enable_if_c -inline typename enable_if::result_type, typename detail::expression::result_type>, bool>::type +inline typename enable_if::result_type, typename detail::expression::result_type>, bool>::type operator < (const detail::expression& a, const detail::expression& b) { using default_ops::eval_lt; @@ -358,7 +358,7 @@ inline bool operator > (const number& a, const num return eval_gt(a.backend(), b.backend()); } template -inline typename enable_if_c, Arithmetic>::value, bool>::type +inline typename enable_if_c, Arithmetic>::value, bool>::type operator > (const number& a, const Arithmetic& b) { using default_ops::eval_gt; @@ -366,7 +366,7 @@ inline typename enable_if_c::canonical_value(b)); } template -inline typename enable_if_c, Arithmetic>::value, bool>::type +inline typename enable_if_c, Arithmetic>::value, bool>::type operator > (const Arithmetic& a, const number& b) { using default_ops::eval_lt; @@ -374,7 +374,7 @@ inline typename enable_if_c::canonical_value(a)); } template -inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type +inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type operator > (const Arithmetic& a, const detail::expression& b) { typedef typename detail::expression::result_type result_type; @@ -384,7 +384,7 @@ inline typename enable_if_c t; } template -inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type +inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type operator > (const detail::expression& a, const Arithmetic& b) { typedef typename detail::expression::result_type result_type; @@ -394,7 +394,7 @@ inline typename enable_if_c b; } template -inline typename enable_if::result_type, typename detail::expression::result_type>, bool>::type +inline typename enable_if::result_type, typename detail::expression::result_type>, bool>::type operator > (const detail::expression& a, const detail::expression& b) { using default_ops::eval_gt; @@ -412,7 +412,7 @@ inline bool operator <= (const number& a, const nu return !eval_gt(a.backend(), b.backend()); } template -inline typename enable_if_c, Arithmetic>::value, bool>::type +inline typename enable_if_c, Arithmetic>::value, bool>::type operator <= (const number& a, const Arithmetic& b) { using default_ops::eval_gt; @@ -420,7 +420,7 @@ inline typename enable_if_c::canonical_value(b)); } template -inline typename enable_if_c, Arithmetic>::value, bool>::type +inline typename enable_if_c, Arithmetic>::value, bool>::type operator <= (const Arithmetic& a, const number& b) { using default_ops::eval_lt; @@ -428,7 +428,7 @@ inline typename enable_if_c::canonical_value(a)); } template -inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type +inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type operator <= (const Arithmetic& a, const detail::expression& b) { typedef typename detail::expression::result_type result_type; @@ -440,7 +440,7 @@ inline typename enable_if_c -inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type +inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type operator <= (const detail::expression& a, const Arithmetic& b) { typedef typename detail::expression::result_type result_type; @@ -450,7 +450,7 @@ inline typename enable_if_c -inline typename enable_if::result_type, typename detail::expression::result_type>, bool>::type +inline typename enable_if::result_type, typename detail::expression::result_type>, bool>::type operator <= (const detail::expression& a, const detail::expression& b) { using default_ops::eval_gt; @@ -468,7 +468,7 @@ inline bool operator >= (const number& a, const nu return !eval_lt(a.backend(), b.backend()); } template -inline typename enable_if_c, Arithmetic>::value, bool>::type +inline typename enable_if_c, Arithmetic>::value, bool>::type operator >= (const number& a, const Arithmetic& b) { using default_ops::eval_lt; @@ -476,7 +476,7 @@ inline typename enable_if_c::canonical_value(b)); } template -inline typename enable_if_c, Arithmetic>::value, bool>::type +inline typename enable_if_c, Arithmetic>::value, bool>::type operator >= (const Arithmetic& a, const number& b) { using default_ops::eval_gt; @@ -484,7 +484,7 @@ inline typename enable_if_c::canonical_value(a)); } template -inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type +inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type operator >= (const Arithmetic& a, const detail::expression& b) { typedef typename detail::expression::result_type result_type; @@ -494,7 +494,7 @@ inline typename enable_if_c -inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type +inline typename enable_if_c::result_type, Arithmetic>::value, bool>::type operator >= (const detail::expression& a, const Arithmetic& b) { typedef typename detail::expression::result_type result_type; @@ -504,7 +504,7 @@ inline typename enable_if_c -inline typename enable_if::result_type, typename detail::expression::result_type>, bool>::type +inline typename enable_if::result_type, typename detail::expression::result_type>, bool>::type operator >= (const detail::expression& a, const detail::expression& b) { using default_ops::eval_lt; -- cgit v1.2.3