monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] Re: MM with temporaries


From: Bruce Stephens
Subject: [Monotone-devel] Re: MM with temporaries
Date: Mon, 26 Sep 2005 17:37:51 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Steven E. Harris" <address@hidden> writes:

> In that case, your proposal to use an extra reference before the
> Musing constructor sounds like the best way to go, assuming that you
> can't trust people to follow a coding guideline forbidding
> temporaries as arguments to MM().

Which returns us to what I think was the original question: is there
some combination of code and gcc warning options that would
automatically enforce (or at least detect the violation of) such a
coding guideline?

(I don't think there is, but it's the kind of warning flag that
*ought* to exist, especially since the lifetime of temporaries has
changed not so long ago, so it's entirely possible I'm missing it in
the docs.)




reply via email to

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