From: Matt Benjamin Date: Sun, 20 Dec 2015 18:32:13 +0000 (-0500) Subject: Dispatcher.h: include assert.h X-Git-Tag: v10.0.3~187^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cd2947d7e950f63bd08ec2eb2b40f4f447309dc1;p=ceph.git Dispatcher.h: include assert.h The inline ms_fast_dispatch implementation calls assert, which puts asset.h in the interface. The fact that many Dispatcher descendants don't implement ms_fast_dispatch prevents making the method pure virtual--which suggests that maybe there is a need for a FastDispatcher interface that inherits Dispatcher and introduces ms_fast_dispatch and related? Signed-off-by: Matt Benjamin --- diff --git a/src/msg/Dispatcher.h b/src/msg/Dispatcher.h index 4c134e577a7..d6868edc18d 100644 --- a/src/msg/Dispatcher.h +++ b/src/msg/Dispatcher.h @@ -17,6 +17,7 @@ #define CEPH_DISPATCHER_H #include "include/buffer_fwd.h" +#include "include/assert.h" class Messenger; class Message;