diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-08-02 10:31:53 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-08-02 10:31:53 (GMT) |
commit | b4790819bc4155cdab148dc536f55a7fc0595d9a (patch) | |
tree | e31072ac841ca30156721f4ec938e8873afce350 /src/FbTk/Util.hh | |
parent | 4398eb206005f2bd6ee50e3334807378276c5fd8 (diff) | |
download | fluxbox_pavel-b4790819bc4155cdab148dc536f55a7fc0595d9a.zip fluxbox_pavel-b4790819bc4155cdab148dc536f55a7fc0595d9a.tar.bz2 |
Add explicit ReturnType cast to operator() of FbTk::Slots
without this it wasn't possible to construct a Slot returning void from functors returning some
real value because the compiler would complain about "return statement with a value in a function
returning void".
Theoretically, this may produce some unexpected type conversions, because static_cast is slightly
stronger than implicit cast, but I judge the risk to be negligable (the alternative would be to
provide explicit specializations for slots returning void - too much typing)
Diffstat (limited to 'src/FbTk/Util.hh')
0 files changed, 0 insertions, 0 deletions