monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] gcc warnings


From: Zack Weinberg
Subject: Re: [Monotone-devel] gcc warnings
Date: Wed, 4 Mar 2009 10:18:18 -0800

On Wed, Mar 4, 2009 at 10:17 AM, Zack Weinberg <address@hidden> wrote:
> I don't have gcc4.4 to hand, but do you get the same diagnostic with
> this test case?

Slight correction:

>
> #include <map>
> typedef std::map<unsigned int, unsigned long> M;
>
> bool test(M m, unsigned int k, unsigned long v)
bool test(M const & m, unsigned int k, unsigned long v)
> {
>  M::const_iterator i = m.find(k);
>  if (i == m.end()) return false;
>  return (i->second == v);
> }

sorry
zw




reply via email to

[Prev in Thread] Current Thread [Next in Thread]