I am sorry for the previous empty message, I pressed the wrong button ...
-----------------------------------------------------------------------

James Lin wrote:
> C++ does not allow anonymous objects to be passed where non-const references 
> are expected. Specifically, non-const references must be lvalues.
>
> http://groups.google.com/group/comp.lang.c++/browse_thread/thread/814a071947c5b675/be95a615245cdbdf?#be95a615245cdbdf

Well, I hope I see what you mean. I was not aware of this. After I corrected 
the definition of bar and added const:

int bar (const gslot & gs)

The code compiled without problems.

Thank you very much, James!

_________________________________________________________________
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx
_______________________________________________
libsigc-list mailing list
libsigc-list@gnome.org
http://mail.gnome.org/mailman/listinfo/libsigc-list

Reply via email to