Re: [Firebird-devel] GlobalStorage
On 02/26/2016 05:16 PM, Dimitry Sibiryakov wrote: > 26.02.2016 14:51, Alex Peshkoff wrote: >> Better keep Array 'public AutoStorage'. > But in this case every derived class will have to declare constructor > with call to > getDefaultMemoryPool() inside which is more than necessary. > Yes, it will have to do it when working with Firebird::Array. -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] GlobalStorage
26.02.2016 14:51, Alex Peshkoff wrote: > Better keep Array 'public AutoStorage'. But in this case every derived class will have to declare constructor with call to getDefaultMemoryPool() inside which is more than necessary. -- WBR, SD. -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] GlobalStorage
On 02/26/2016 04:43 PM, Dimitry Sibiryakov wrote: > 26.02.2016 14:21, Dimitry Sibiryakov wrote: >> This word is not in GlobalStorage declaration, but in "class Array >> : protected Storage". > What is better: change declaration of Array or re-declare the operators > in every > derived class? > Better keep Array 'public AutoStorage'. -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] GlobalStorage
26.02.2016 14:21, Dimitry Sibiryakov wrote: > This word is not in GlobalStorage declaration, but in "class Array > : protected Storage". What is better: change declaration of Array or re-declare the operators in every derived class? -- WBR, SD. -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] GlobalStorage
26.02.2016 14:11, Alex Peshkoff wrote: > Where is word protected? Oops, you are right. This word is not in GlobalStorage declaration, but in "class Array : protected Storage". -- WBR, SD. -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] GlobalStorage
On 02/25/2016 07:03 PM, Dimitry Sibiryakov wrote: > Hello, All. > > Comment on subj says that > >> // Global storage makes it possible to use new and delete for classes, >> // based on it, to behave traditionally, i.e. get memory from permanent >> pool. > But at the same time new and delete are declared protected that makes > them impossible > to use outside of class' members. Why? > Where is word protected? // Global storage makes it possible to use new and delete for classes, // based on it, to behave traditionally, i.e. get memory from permanent pool. class GlobalStorage { *public:** *void* operator new(size_t size ALLOC_PARAMS) { return getDefaultMemoryPool()->allocate(size ALLOC_PASS_ARGS); } -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
[Firebird-devel] GlobalStorage
Hello, All. Comment on subj says that > // Global storage makes it possible to use new and delete for classes, > // based on it, to behave traditionally, i.e. get memory from permanent > pool. But at the same time new and delete are declared protected that makes them impossible to use outside of class' members. Why? -- WBR, SD. -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel