[Cppcms-users] Document regarding input content filtering
Brought to you by:
artyom-beilis
From: CN <cn...@fa...> - 2016-04-12 16:13:33
|
Greetings, I can imagine we might be able to put something like this my_cppcms_service.applications_pool().mount(cppcms::create_pool<myfilter>(),cppcms::mount_point("(.*)",1),cppcms::app::asynchronous | cppcms::app::content_filter); in int main(int,char**){ //here } , but I have trouble figuring out how to pass booster::weak_ptr<cppcms::application_specific_pool> or booster::shared_ptr<cppcms::application_specific_pool> as the argument to the constructor of myfilter: myfilter(cppcms::service &srv, weak_pool_ptr ptr): cppcms::application(srv), wpool_(ptr) { .. } I will much appreciate if some kind soul will provide me an example in int main(int,char**){ //here } Best regards, CN -- http://www.fastmail.com - Accessible with your email software or over the web |