GNOME Bugzilla – Bug 333417
GST_BOILERPLATE_WITH_INTERFACE can't be used in C++ code
Last modified: 2006-03-09 21:28:24 UTC
C++ is more strict with regards to pointer conversions, and it rejects one assignment in the macro, the attached patch should fix it. I don't know if you are willing to integrate C++ fixes in C convenience macros though ;)
Created attachment 60669 [details] [review] Fix cast
Oh well, if g++ complains about it, there isn't much we can do about it. We could probably wrap the macro in 'extern "C" {' bits, but that somehow seems dodgy to me. I say one more ugly cast in an already ugly macro isn't gonna make a difference ;) 2006-03-06 Tim-Philipp Müller <tim at centricular dot net> * gst/gstutils.h: Do proper cast here to make GST_BOILERPLATE_WITH_INTERFACE usable in c++ code (#333417; patch by: Christophe Fergeau)