From cb08150d87f53c619f355e399c3cd5b14c47e1c8 Mon Sep 17 00:00:00 2001 From: an-tao <20741618@qq.com> Date: Fri, 11 May 2018 17:39:52 +0800 Subject: [PATCH] update trantor --- examples/static_link_example/main.cc | 2 +- lib/inc/drogon/HttpSimpleController.h | 18 ++++++++++-------- trantor | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/examples/static_link_example/main.cc b/examples/static_link_example/main.cc index f4fe32f6..2139cc3a 100755 --- a/examples/static_link_example/main.cc +++ b/examples/static_link_example/main.cc @@ -47,7 +47,7 @@ int main() //drogon::DrObjectBase *p=drogon::DrClassMap::newObject("HHH"); //TestController haha; //std::cout<,public HttpSimpleControllerBase { public: - HttpSimpleController(){} + virtual ~HttpSimpleController(){} + protected: + + HttpSimpleController(){} + private: - //virtual std::vector paths()=0; + class pathRegister { public: - pathRegister(){ - std::cout<<"pathRegister!!"<::classTypeName()<*>(new T); + pathRegister() + { auto vPaths=T::paths(); - //delete ctl; + for(auto path:vPaths) { + LOG_DEBUG<<"register simple controller("<::classTypeName()<<") on path:"<::classTypeName()); } - } protected: diff --git a/trantor b/trantor index caf2c2b9..3dfefc81 160000 --- a/trantor +++ b/trantor @@ -1 +1 @@ -Subproject commit caf2c2b989961560dbd8fa75f09d34009c1319b3 +Subproject commit 3dfefc817dc9c181ed68ced3f4eafbf7df09b9fb