aboutsummaryrefslogtreecommitdiff
path: root/brep/diagnostics.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-04-21 16:05:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-04-21 16:05:13 +0200
commit2a0f39b29c1bea6a4497c0f1826052ffa453af9e (patch)
tree283f6bf1569c1b9f00b6e25fe986ccfff8a8629f /brep/diagnostics.cxx
parentc6b4d6c6489731eedba606d3c85c4319c4478b50 (diff)
Move module implementation from brep/ to mod/
Diffstat (limited to 'brep/diagnostics.cxx')
-rw-r--r--brep/diagnostics.cxx30
1 files changed, 0 insertions, 30 deletions
diff --git a/brep/diagnostics.cxx b/brep/diagnostics.cxx
deleted file mode 100644
index b0d122f..0000000
--- a/brep/diagnostics.cxx
+++ /dev/null
@@ -1,30 +0,0 @@
-// file : brep/diagnostics.cxx -*- C++ -*-
-// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd
-// license : MIT; see accompanying LICENSE file
-
-#include <brep/diagnostics>
-
-using namespace std;
-
-namespace brep
-{
- diag_record::
- ~diag_record () noexcept(false)
- {
- // Don't flush the record if this destructor was called as part of
- // the stack unwinding. Right now this means we cannot use this
- // mechanism in destructors, which is not a big deal, except for
- // one place: exception_guard. So for now we are going to have
- // this ugly special check which we will be able to get rid of
- // once C++17 uncaught_exceptions() becomes available.
- //
- if (!data_.empty () &&
- (!uncaught_exception () /*|| exception_unwinding_dtor*/))
- {
- data_.back ().msg = os_.str (); // Save last message.
-
- assert (epilogue_ != nullptr);
- (*epilogue_) (move (data_)); // Can throw.
- }
- }
-}