fix clang build
authorJames Sedgwick <jsedgwick@fb.com>
Fri, 15 May 2015 16:55:52 +0000 (09:55 -0700)
committerViswanath Sivakumar <viswanath@fb.com>
Wed, 20 May 2015 17:57:10 +0000 (10:57 -0700)
Summary: PipelineBase needs something virtual so we can dynamic_cast from it down to the real pipeline, as we do in Proxy

Test Plan: built proxy with clang

Reviewed By: hans@fb.com

Subscribers: fugalh, mathieubaudet, folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D2075855

Tasks: 70774197077417

Signature: t1:2075855:1431708780:03ce8d8f40cdb56d24baf75f4dc29004e5ea4c7a

folly/wangle/channel/Pipeline.h

index 8fa134d80f18c996f483779f854a620762c5d9c9..81b68023903c876dc6e287810711727c40c23fef 100644 (file)
@@ -33,6 +33,8 @@ class PipelineManager {
 
 class PipelineBase {
  public:
+  virtual ~PipelineBase() {}
+
   void setPipelineManager(PipelineManager* manager) {
     manager_ = manager;
   }