void_kill
04-10-2007, 09:32 PM
When using a SlotContainer with the CL_Keyboard and CL_Mouse signals I get the error:
error: no matching function for call to CL_SlotContainer::connect(CL_Signal_v1<const CL_InputEvent&>&, void (*)(const CL_InputEvent&))'
For the following code:
slots.connect(window->sig_window_close(), &Core::on_window_close);
slots.connect(CL_Keyboard::sig_key_down(), &Core::on_key_down);
The first line works fine, but the second produces the error.
Thanks, Dom.
error: no matching function for call to CL_SlotContainer::connect(CL_Signal_v1<const CL_InputEvent&>&, void (*)(const CL_InputEvent&))'
For the following code:
slots.connect(window->sig_window_close(), &Core::on_window_close);
slots.connect(CL_Keyboard::sig_key_down(), &Core::on_key_down);
The first line works fine, but the second produces the error.
Thanks, Dom.