diff oct-py-types.cc @ 415:9bf8ba050122

Replace all remaining Boost.Python references * exceptions.h (pytave::error_alreadY_set): New exception placeholder class. * __py_struct_from_dict__.cc, oct-py-eval.cc, oct-py-types.cc, oct-py-util.cc, pycall.cc, pyeval.cc, pyexec.cc: Use it in place of boost::python. Remove all #includes of Boost headers.
author Mike Miller <mtmiller@octave.org>
date Wed, 03 May 2017 21:48:07 -0700
parents 3613ffbd52b2
children 7864849e84c2
line wrap: on
line diff
--- a/oct-py-types.cc	Wed May 03 20:32:10 2017 -0700
+++ b/oct-py-types.cc	Wed May 03 21:48:07 2017 -0700
@@ -36,9 +36,6 @@
 #include "oct-py-types.h"
 #include "oct-py-util.h"
 
-// FIXME: only here for exception types still used in this file
-#include <boost/python/errors.hpp>
-
 namespace pytave
 {
 
@@ -357,7 +354,7 @@
         PyObject *item = py_implicitly_convert_argument (map.contents (p));
 
         if (PyDict_SetItem (dict, key, item) < 0)
-          throw boost::python::error_already_set ();
+          throw pytave::error_already_set ();
       }
 
     return dict;