[csw-maintainers] Error: Ambiguous "?:" expression

Roger Håkansson hson at opencsw.org
Thu Mar 11 02:20:24 CET 2010


On 2010-03-10 23:24, Jake Goerzen wrote:
> I applied your patch (generator_private.hpp.diff) and continued
> compiling, then ran into a problem in gui/widgets/image.cpp:
>
> "gui/widgets/image.cpp", line 25: Error: get_image is not defined.
> "gui/widgets/image.cpp", line 29: Error: Pointer type needed instead
> of surface(*)().
> "gui/widgets/image.cpp", line 29: Error: Pointer type needed instead
> of surface(*)().
> 3 Error(s) detected.
>          surface image(get_image(image::locator(label())));
>
>          tpoint result(0, 0);
>          if(image) {
>                  result = tpoint(image->w, image->h);
>          }

Change
surface image(get_image(image::locator(label())));
to
surface image(image::get_image(image::locator(label())));


More information about the maintainers mailing list