Removed "using namespace std" statements from header files in EO -- "std::" identifier were added where necessary.
This commit is contained in:
parent
6441ea1ec3
commit
86fa476c67
263 changed files with 2009 additions and 1976 deletions
|
|
@ -30,18 +30,18 @@ template <class T>
|
|||
struct T_pickle_suite : boost::python::pickle_suite
|
||||
{
|
||||
static
|
||||
std::string print_to_string(const T& t)
|
||||
std::string print_to_std::string(const T& t)
|
||||
{
|
||||
std::ostrstream os;
|
||||
t.printOn(os);
|
||||
os << ends;
|
||||
os << std::ends;
|
||||
return os.str();
|
||||
}
|
||||
|
||||
static
|
||||
boost::python::tuple getstate(const T& t)
|
||||
{
|
||||
std::string s = print_to_string(t);
|
||||
std::string s = print_to_std::string(t);
|
||||
return boost::python::make_tuple( boost::python::str(s));
|
||||
}
|
||||
|
||||
|
|
@ -54,14 +54,14 @@ struct T_pickle_suite : boost::python::pickle_suite
|
|||
}
|
||||
};
|
||||
|
||||
/** Defines persistency through pickle support by using strings
|
||||
/** Defines persistency through pickle support by using std::strings
|
||||
* so while we're at it, we will .def("__str__") as well
|
||||
*/
|
||||
template <class Persistent, class X1, class X2, class X3>
|
||||
boost::python::class_<Persistent, X1, X2, X3>& pickle(boost::python::class_<Persistent, X1, X2, X3>& c)
|
||||
{
|
||||
return c.def_pickle(T_pickle_suite<Persistent>())
|
||||
.def("__str__", T_pickle_suite<Persistent>::print_to_string);
|
||||
.def("__str__", T_pickle_suite<Persistent>::print_to_std::string);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Reference in a new issue