Re: [Cppcms-users] Read-only context
Brought to you by:
artyom-beilis
From: Nazım C. B. <naz...@ne...> - 2017-01-17 23:48:27
|
Joerg, I am not expert, but while preparing patch; especially in 'session()' and 'cache()' functions; it's not so easy to mark some fields as mutable as we could do it in daily C++. Since CppCMS is trying to keep ABI stability; it uses pimpl idiom nearly everywhere. And it needs good amount of work for refactoring to support mutable in proper way. (I guess, sort of) Regards, Nazim. On 18/01/17 00:17, Joerg Sonnenberger wrote: > On Tue, Jan 17, 2017 at 11:00:36PM +0200, Artyom Beilis wrote: >> Many of the interfaces that are used relay on lazy >> initialization/evaluation - as you noticed for example for >> >> - cache() object - it is created on demand. >> - map<string,string> http::request::getenv() does similar stuff - it >> converts the efficient internal representation to external only on >> demand. > That doesn't necessarily stop const accessors from working, it just > means that the internal fields have to be marked explicitly as mutable. > > Joerg > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |