diff oct-py-util.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 3644df6564bc
children 24555fba9964
line wrap: on
line diff
--- a/oct-py-util.cc	Wed May 03 20:32:10 2017 -0700
+++ b/oct-py-util.cc	Wed May 03 21:48:07 2017 -0700
@@ -27,13 +27,11 @@
 #include <oct.h>
 #include <octave/parse.h>
 
+#include "exceptions.h"
 #include "oct-py-object.h"
 #include "oct-py-types.h"
 #include "oct-py-util.h"
 
-// FIXME: only here for boost::python::error_already_set
-#include <boost/python.hpp>
-
 namespace pytave
 {
 
@@ -173,7 +171,7 @@
           }
 
         if (! dict)
-          throw boost::python::error_already_set ();
+          throw pytave::error_already_set ();
 
         objstore = dict;
       }