From 0e36ac6b72745a024f14dd54f37d4fba600c8f91 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 16 Dec 2002 21:14:30 +0000 Subject: [PATCH] Bug fix with construction of std::exception [SVN r16625] --- test/embedding.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/embedding.cpp b/test/embedding.cpp index 5b4db3f4..5a86f2cf 100644 --- a/test/embedding.cpp +++ b/test/embedding.cpp @@ -8,6 +8,7 @@ // Dirk Gerrits #include +#include #include #include @@ -60,8 +61,8 @@ void test() // Register the module with the interpreter if (PyImport_AppendInittab("embedded_hello", initembedded_hello) == -1) - throw std::exception("Failed to add embedded_hello to the interpreters " - "builtin modules"); + throw std::runtime_error("Failed to add embedded_hello to the interpreter's " + "builtin modules"); // Initialize the interpreter Py_Initialize();