andysworkshop/stm32plus — pull request #54 by tokoro10g (2014-08-05 16:25:39+00:00)
Title: Fixed typename of non-member function slot

Compilation fails when binding non-class-member function pointer.

```
In file included from ../../stm32plus/lib/include/config/event.h:24:0,
from ../../stm32plus/lib/include/config/dma.h:20,
from ../../stm32plus/lib/include/config/spi.h:19,
from quadruptor.cpp:3:
../../stm32plus/lib/include/event/slot.h: In instantiation of 'static wink::slot wink::slot::bind(Signature) [with Signature = void(stm32plus::UsartEventType)]':
quadruptor.cpp:64:56: required from here
../../stm32plus/lib/include/event/slot.h:58:26: error: 'slot_type' was not declared in this scope
return slot_type(fn);
^
../../stm32plus/lib/include/event/slot.h: In static member function 'static wink::slot wink::slot::bind(Signature) [with Signature = void(stm32plus::UsartEventType)]':
../../stm32plus/lib/include/event/slot.h:59:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
```

This PR should fix this issue.