[Cppcms-users] init(content::base &) can't be used in derived class of cppcms::application
Brought to you by:
artyom-beilis
From: kpeo <sla...@ya...> - 2011-01-30 14:41:37
|
Hello Artyom and all! As i understood correctly, function like init(content::base &) can't be used now in derived class of cppcms::application since r1653 of cppcms/url_dispatcher.h, where new init() is now used. So we should to rename our init(content::base &) function to ini(content::x &) for example, to avoid compile errors like: /usr/local/include/cppcms/url_dispatcher.h: In constructor ‘cppcms::url_dispatcher::page_guard<C, typename booster::enable_if<booster::is_base_of<cppcms::application, C>, void>::type>::page_guard(C*) [with C = app::project]’: /usr/local/include/cppcms/url_dispatcher.h:210: instantiated from ‘void cppcms::url_dispatcher::binder0<C>::operator()() const [with C = app::project]’ /usr/local/include/booster/function.h:163: instantiated from ‘void booster::function<Result()>::callable_impl<void, F>::call() [with F = cppcms::url_dispatcher::binder0<app::project>, Result = void]’ /media/opnp/project.cpp:161: instantiated from here /usr/local/include/cppcms/url_dispatcher.h:187: error: no matching function for call to ‘app::project::init()’ /media/opnp/project.cpp:49: note: candidates are: void app::project::init(content::base&) /media/opnp/project.cpp:161 - end '}' of "namespace app {" /media/opnp/project.cpp:49: 46: project::project(site &s) : base(s) 47: { 48: // 49: w.dispatcher().assign("^/?project/?(\\w+)?/?$",&project::out,this,1); So, i understand correctly and this is not a bug? |