Re: [PATCH] lib: work around talloc_steal usage from C++ code

Subject: Re: [PATCH] lib: work around talloc_steal usage from C++ code

Date: Sun, 15 Apr 2012 09:45:06 -0300

To: Jani Nikula, notmuch@notmuchmail.org

Cc:

From: David Bremner


Jani Nikula <jani@nikula.org> writes:

> Implicit typecast from 'void *' to 'T *' is okay in C, but not in
> C++. In talloc_steal, an explicit cast is provided for type safety in
> some GCC versions. Otherwise, a cast is required. Provide a template
> function for this to maintain type safety, and redefine talloc_steal
> to use it.

pushed,

d

Thread: