After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 333417 - GST_BOILERPLATE_WITH_INTERFACE can't be used in C++ code
GST_BOILERPLATE_WITH_INTERFACE can't be used in C++ code
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: 0.10.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks: 333501
 
 
Reported: 2006-03-04 23:21 UTC by Christophe Fergeau
Modified: 2006-03-09 21:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix cast (961 bytes, patch)
2006-03-04 23:21 UTC, Christophe Fergeau
committed Details | Review

Description Christophe Fergeau 2006-03-04 23:21:17 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 ;)
Comment 1 Christophe Fergeau 2006-03-04 23:21:45 UTC
Created attachment 60669 [details] [review]
Fix cast
Comment 2 Tim-Philipp Müller 2006-03-06 14:48:46 UTC
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)