Re: [Cppcms-users] Migration Guide
Brought to you by:
artyom-beilis
From: Markus R. <us...@ma...> - 2012-03-04 15:02:44
|
Hi! First of all, congratulation for cppcms 1.0. It is a really great piece of software! Artyom Beilis wrote: >> For settings() it seems like that a const is missing. > > In general there are few const methods in CppCMS. > > mostly because it allow to have some side effects > that for example allow caching or lazy initialization. Ok, I understand. I am rather a fan of Scott Meyers: Use const whenever possible. For caching and logging I typically use mutable, because from logical point of view they still give the user constness. I have to admit, however, that I never build such an advanced caching system like cppcms has, it could be easily possible that you will get crazy when you try to have more const methods ;) > So I'd generally recommend to use non-const member function withing > cppcms application derived classes. Ok, so I will do that! best regards Markus -- http://www.markus-raab.org | Begeisterung ist alles! -- A.v. Wilbrandt, -o) | Fridolins heimliche Ehe Kernel 2.6.32-5-a /\ | on a x86_64 _\_v | |