[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#134020: Patch to build python-apt with g++-3.0



On Sun, 24 Feb 2002, Matt Zimmerman wrote:

> apt folk: does this look reasonable to you?  I had to get rid of those funky
> array declarations by shuffling things around, make two minor namespace
> tweaks, and use string::c_str() instead of string::begin().  Works for me.

Hmm, gcc 3 does not like the forward declaration of the static array? How
strange. My reading of the C99 spec suggests this is valid syntax. You
might want to try specifying the size instead of leaving it unspecified.

'using namespace std;' near the top of the file is prefered to sprinkling
std:: everywhere.

Jason






Reply to: