2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Remove <boost/core/demangle.hpp>

This commit is contained in:
Matt Borland
2021-03-28 14:19:48 +03:00
parent ea323e6e1b
commit 352580bb9b
2 changed files with 14 additions and 0 deletions

View File

@@ -12,7 +12,10 @@
#include <cmath>
#include <limits>
#include <stdexcept>
#ifndef BOOST_MATH_STANDALONE
#include <boost/core/demangle.hpp>
#endif
namespace boost::math::tools {
@@ -77,7 +80,11 @@ public:
if (b_[i] == 0) {
std::ostringstream oss;
oss << "Found a zero partial denominator: b[" << i << "] = " << b_[i] << "."
#ifndef BOOST_MATH_STANDALONE
<< " This means the integer type '" << boost::core::demangle(typeid(Z).name())
#else
<< " This means the integer type '" << typeid(Z).name()
#endif
<< "' has overflowed and you need to use a wider type,"
<< " or there is a bug.";
throw std::overflow_error(oss.str());

View File

@@ -12,7 +12,10 @@
#include <cmath>
#include <limits>
#include <stdexcept>
#ifndef BOOST_MATH_STANDALONE
#include <boost/core/demangle.hpp>
#endif
namespace boost::math::tools {
@@ -74,7 +77,11 @@ public:
if (b_[i] <= 0) {
std::ostringstream oss;
oss << "Found a negative partial denominator: b[" << i << "] = " << b_[i] << "."
#ifndef BOOST_MATH_STANDALONE
<< " This means the integer type '" << boost::core::demangle(typeid(Z).name())
#else
<< " This means the integer type '" << typeid(Z).name()
#endif
<< "' has overflowed and you need to use a wider type,"
<< " or there is a bug.";
throw std::overflow_error(oss.str());