Re: [Cppcms-users] Read-only context
Brought to you by:
artyom-beilis
From: Joerg S. <jo...@be...> - 2017-01-17 21:18:57
|
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 |