Date: Tuesday, December 5, 2006 @ 02:46:04
  Author: marc
    Path: /cvsroot/carob/carob/src

Modified: CarobException.cpp (1.23 -> 1.24)

temporary fix for CAROB-56


--------------------+
 CarobException.cpp |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+)


Index: carob/src/CarobException.cpp
diff -u carob/src/CarobException.cpp:1.23 carob/src/CarobException.cpp:1.24
--- carob/src/CarobException.cpp:1.23   Tue Dec  5 02:31:13 2006
+++ carob/src/CarobException.cpp        Tue Dec  5 02:46:03 2006
@@ -220,6 +220,28 @@
   return woss;
 }
 
+
+// temporary fix for CAROB-56
+namespace {
+
+class STC {
+    std::unexpected_handler old;
+public:
+    STC()
+    {
+        old = std::set_unexpected(UnexpectedException::convertUnexpected);
+    }
+    ~STC()
+    {
+        std::set_unexpected(old);
+    }
+};
+
+// brutal
+STC install_our_global_handler;
+
+}
+
 /*
  * Local Variables:
  * c-file-style: "bsd"

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to