diff options
| author | Arch Librarian <arch@canonical.com> | 2004-11-24 10:00:29 +0000 |
|---|---|---|
| committer | Arch Librarian <arch@canonical.com> | 2004-11-24 10:00:29 +0000 |
| commit | c0bf63530bcb93425a6088c14fca1868e8b3a9fc (patch) | |
| tree | ed6e003cffe4bd09366437f82434e24ad746b233 /python/generic.h | |
| parent | bd0b7c36a57ddf88abe8e3d6cf388b783780a40b (diff) | |
| download | python-apt-c0bf63530bcb93425a6088c14fca1868e8b3a9fc.tar.gz | |
Fix g++-3.0 compilation issues
Author: mdz
Date: 2002-02-26 01:36:15 GMT
Fix g++-3.0 compilation issues
Diffstat (limited to 'python/generic.h')
| -rw-r--r-- | python/generic.h | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
