diff pyeval.cc @ 406:16e79a1e96b8

Eliminate all remaining uses of "using namespace" * octave_to_python.cc, pycall.cc, pyeval.cc, pyexec.cc, python_to_octave.cc: Eliminate all remaining uses of "using namespace", use fully qualified class and function names from Boost.
author Mike Miller <mtmiller@octave.org>
date Mon, 01 May 2017 08:41:01 -0700
parents 478d83448b0b
children 95c6ad0be828
line wrap: on
line diff
--- a/pyeval.cc	Sat Apr 29 15:43:42 2017 -0700
+++ b/pyeval.cc	Mon May 01 08:41:01 2017 -0700
@@ -37,8 +37,6 @@
 #include "oct-py-util.h"
 #include "python_to_octave.h"
 
-using namespace boost::python;
-
 DEFUN_DLD (pyeval, args, nargout,
            "-*- texinfo -*-\n\
 @deftypefn  {} {} pyeval (@var{expr})\n\
@@ -102,7 +100,7 @@
     {
       error ("pyexec: error in return value type conversion");
     }
-  catch (error_already_set const &)
+  catch (boost::python::error_already_set const &)
     {
       std::string message = pytave::fetch_exception_message ();
       error ("pyeval: %s", message.c_str ());