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

David Bremner david at tethera.net
Sun Apr 15 05:45:06 PDT 2012


Jani Nikula <jani at 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


More information about the notmuch mailing list