Re: opCast, c bindings and normal casts.

2011-07-12 Thread Johannes Pfau
Johannes Pfau wrote: Hi, I have a wrapper for a object aware c library (cairo). Take for example two classes, Surface and a subclass, ImageSurface. Now this code has to be valid: --- auto ptr = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 512, 512); Surface s = new

Re: opCast, c bindings and normal casts.

2011-07-12 Thread Steven Schveighoffer
On Sat, 09 Jul 2011 05:47:51 -0400, Johannes Pfau s...@example.com wrote: Hi, I have a wrapper for a object aware c library (cairo). Take for example two classes, Surface and a subclass, ImageSurface. Now this code has to be valid: --- auto ptr =

Re: opCast, c bindings and normal casts.

2011-07-12 Thread Johannes Pfau
Steven Schveighoffer wrote: On Sat, 09 Jul 2011 05:47:51 -0400, Johannes Pfau s...@example.com wrote: Hi, I have a wrapper for a object aware c library (cairo). Take for example two classes, Surface and a subclass, ImageSurface. Now this code has to be valid: --- auto

opCast, c bindings and normal casts.

2011-07-09 Thread Johannes Pfau
Hi, I have a wrapper for a object aware c library (cairo). Take for example two classes, Surface and a subclass, ImageSurface. Now this code has to be valid: --- auto ptr = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 512, 512); Surface s = new Surface(ptr); ImageSurface