[PATCH] lib: convert two "iterator copy strings" into references.

2015-01-03 Thread David Bremner
David Bremner writes: > Apparently this is a supported and even idiomatic way of keeping a > temporary object (e.g. like that returned from an operator > dereference) alive. pushed. d

Re: [PATCH] lib: convert two "iterator copy strings" into references.

2015-01-03 Thread David Bremner
David Bremner writes: > Apparently this is a supported and even idiomatic way of keeping a > temporary object (e.g. like that returned from an operator > dereference) alive. pushed. d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail

[PATCH] lib: convert two "iterator copy strings" into references.

2015-01-02 Thread Tomi Ollila
On Fri, Jan 02 2015, David Bremner wrote: > Apparently this is a supported and even idiomatic way of keeping a > temporary object (e.g. like that returned from an operator > dereference) alive. > --- Based on internet search with words 'c++ reference to temporary' (*) I believe the change is wor

[PATCH] lib: convert two "iterator copy strings" into references.

2015-01-02 Thread Jani Nikula
On Fri, 02 Jan 2015, David Bremner wrote: > Apparently this is a supported and even idiomatic way of keeping a > temporary object (e.g. like that returned from an operator > dereference) alive. > --- > > I decided it was better to do both of these "keepalive" strings the > same way, so I applied t

[PATCH] lib: convert two "iterator copy strings" into references.

2015-01-02 Thread David Bremner
Apparently this is a supported and even idiomatic way of keeping a temporary object (e.g. like that returned from an operator dereference) alive. --- I decided it was better to do both of these "keepalive" strings the same way, so I applied the parent patch as is. lib/message.cc | 4 ++-- 1 file

Re: [PATCH] lib: convert two "iterator copy strings" into references.

2015-01-02 Thread Tomi Ollila
On Fri, Jan 02 2015, David Bremner wrote: > Apparently this is a supported and even idiomatic way of keeping a > temporary object (e.g. like that returned from an operator > dereference) alive. > --- Based on internet search with words 'c++ reference to temporary' (*) I believe the change is wor

Re: [PATCH] lib: convert two "iterator copy strings" into references.

2015-01-02 Thread Jani Nikula
On Fri, 02 Jan 2015, David Bremner wrote: > Apparently this is a supported and even idiomatic way of keeping a > temporary object (e.g. like that returned from an operator > dereference) alive. > --- > > I decided it was better to do both of these "keepalive" strings the > same way, so I applied t

[PATCH] lib: convert two "iterator copy strings" into references.

2015-01-02 Thread David Bremner
Apparently this is a supported and even idiomatic way of keeping a temporary object (e.g. like that returned from an operator dereference) alive. --- I decided it was better to do both of these "keepalive" strings the same way, so I applied the parent patch as is. lib/message.cc | 4 ++-- 1 file