[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Re: [Monotone-debian] Bug#455646: FTBFS with GCC 4.
From: |
Stephen Leake |
Subject: |
Re: [Monotone-devel] Re: [Monotone-debian] Bug#455646: FTBFS with GCC 4.3: missing #includes |
Date: |
Sun, 16 Dec 2007 02:59:23 -0500 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/22.1 (windows-nt) |
"Zack Weinberg" <address@hidden> writes:
> After a depressingly long interval with the delta-minimizer, I can now
> comprehend what you mean. This is a minimized version of the code
> within Monotone itself that provokes the error:
>
> class set;
> struct a_scalar
> {
> void set(set);
> };
>
> My initial reaction was that the top-level 'class set' and the
> function 'a_scalar::set' are *not* in the same scope, but on further
> thinking, they are -- within 'struct a_scalar' itself. Is that right?
> If so I suppose I can justify changing the name of a_scalar::set.
> (We can't change the other one - that's really std::set, and taking
> out the using-declaration for it would make the rest of the code
> harder to read. a_scalar::set isn't used very much, so its name can
> change, I suppose.)
Can't you use std::set here?
class set;
struct a_scalar
{
void set(std::set);
};
--
-- Stephe