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

Reply via email to