summaryrefslogtreecommitdiff
path: root/boost/multiprecision/debug_adaptor.hpp
diff options
context:
space:
mode:
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()
{