"Zack Weinberg" <[EMAIL PROTECTED]> 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


_______________________________________________
Monotone-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to