From c0bf63530bcb93425a6088c14fca1868e8b3a9fc Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Wed, 24 Nov 2004 10:00:29 +0000 Subject: Fix g++-3.0 compilation issues Author: mdz Date: 2002-02-26 01:36:15 GMT Fix g++-3.0 compilation issues --- python/generic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/generic.h') diff --git a/python/generic.h b/python/generic.h index 4e51fd9e..54a88f81 100644 --- a/python/generic.h +++ b/python/generic.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: generic.h,v 1.2 2002/01/08 06:53:04 jgg Exp $ +// $Id: generic.h,v 1.3 2002/02/26 01:36:15 mdz Exp $ /* ###################################################################### generic - Some handy functions to make integration a tad simpler @@ -110,9 +110,9 @@ void CppOwnedDealloc(PyObject *iObj) PyMem_DEL(Obj); } -inline PyObject *CppPyString(string Str) +inline PyObject *CppPyString(std::string Str) { - return PyString_FromStringAndSize(Str.begin(),Str.length()); + return PyString_FromStringAndSize(Str.c_str(),Str.length()); } inline PyObject *Safe_FromString(const char *Str) -- cgit v1.2.3