On 03/11/14 13:14, Dimitry Sibiryakov wrote: > 11.03.2014 6:38, Alex wrote: >> On 03/09/2014 03:43 PM, Dimitry Sibiryakov wrote: >>> What's the purpose for IMessageMetadata::getLength() method to be >>> declared as const? >>> Such declaration makes impossible to calculate length on demand and cache >>> the result for >>> future calls. Implementations have to either calculate it on every call, or >>> do that in >>> other places which makes implementation unstable or inefficient. >> For me it looks like historical artifact from some old implementation. > "mutable" attribute is a funny workaround for self-made problem. > I know, but in this case getLength() declaration should better be corrected. We nowhere use const interfaces.
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel