Skip to content

Commit

Permalink
Verify that AddRecipient call is valid where expected.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Hare committed Aug 7, 2014
1 parent 7b92a2c commit 8ce38bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autowiring/AutoPacket.h
Expand Up @@ -405,6 +405,7 @@ class AutoPacket:
/// </summary>
template<class Ret, class... Args>
void AddRecipient(std::function<Ret(Args...)> f) {
static_assert(is_auto_filter<std::function<Ret(Args...)>>::value, "Either arguments or return are not allowed types for AutoFilter methods");
std::cout << "Decoration overload for std::function called" << std::endl;
//(1) Decide whether the function can be used as an AutoFilter
//(2) Update (with lock) the slot information for this packet only.
Expand Down

0 comments on commit 8ce38bb

Please sign in to comment.