Re: [Firebird-devel] Array's storage

2016-02-19 Thread Alex Peshkoff
On 02/19/2016 12:40 PM, Dimitry Sibiryakov wrote: > 19.02.2016 10:05, Alex Peshkoff wrote: >> You are wrong. AutoStorage can be used for both on-stack and dynamically >> allocated objects. In the second case MemoryPool& parameter must be >> passed to ctor. > What memory pool can be used to allo

Re: [Firebird-devel] Array's storage

2016-02-19 Thread Dimitry Sibiryakov
19.02.2016 10:05, Alex Peshkoff wrote: > You are wrong. AutoStorage can be used for both on-stack and dynamically > allocated objects. In the second case MemoryPool& parameter must be > passed to ctor. What memory pool can be used to allocate objects with undefined life time? -- WBR, SD.

Re: [Firebird-devel] Array's storage

2016-02-19 Thread Alex Peshkoff
On 02/16/2016 04:33 PM, Dimitry Sibiryakov wrote: > Hello, All. > > Do I understand right that because HalfStaticArray is derived from > AutoStorage, it > cannot be used in dynamically allocated objects? > What array class can be used there? > You are wrong. AutoStorage can be used fo

[Firebird-devel] Array's storage

2016-02-16 Thread Dimitry Sibiryakov
Hello, All. Do I understand right that because HalfStaticArray is derived from AutoStorage, it cannot be used in dynamically allocated objects? What array class can be used there? -- WBR, SD. -- Site24x7 A