summaryrefslogtreecommitdiff
path: root/boost/multiprecision/debug_adaptor.hpp
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2016-10-06 10:38:45 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2016-10-06 10:39:52 +0900
commit5cde13f21d36c7224b0e13d11c4b49379ae5210d (patch)
treee8269ac85a4b0f7d416e2565fa4f451b5cb41351 /boost/multiprecision/debug_adaptor.hpp
parentd9ec475d945d3035377a0d89ed42e382d8988891 (diff)
downloadboost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.tar.gz
boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.tar.bz2
boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.zip
Imported Upstream version 1.61.0
Change-Id: I96a1f878d1e6164f01e9aadd5147f38fca448d90 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/multiprecision/debug_adaptor.hpp')
-rw-r--r--boost/multiprecision/debug_adaptor.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/boost/multiprecision/debug_adaptor.hpp b/boost/multiprecision/debug_adaptor.hpp
index 6eb5a04616..a6ed903c44 100644
--- a/boost/multiprecision/debug_adaptor.hpp
+++ b/boost/multiprecision/debug_adaptor.hpp
@@ -28,9 +28,12 @@ private:
public:
void update_view()
{
+#ifndef BOOST_NO_EXCEPTIONS
try
{
+#endif
debug_value = m_value.str(0, static_cast<std::ios_base::fmtflags>(0));
+#ifndef BOOST_NO_EXCEPTIONS
}
catch(const std::exception& e)
{
@@ -38,6 +41,7 @@ public:
debug_value += e.what();
debug_value += "\"";
}
+#endif
}
debug_adaptor()
{