[fdo-internals] Question about VALIDATE_ALLOCATION

Mateusz Loskot mateusz at loskot.net
Sat Feb 3 17:40:38 EST 2007


Greg,

I'm *not* suggesting anything like that, but I'm just asking:
- if any of FDO components/providers use nothrow version of new operator
- if I should use this macro, because some components use nothrow new
- if I should, then where to use it -> best practice

Mateusz


Greg Boone wrote:
> Hi Mateusz,
>  
> You are correct. We could indeed rid ourselves of this marco.
>  
> Greg
> 
>     -----Original Message-----
>     *From:* fdo-internals-bounces at lists.osgeo.org on behalf of Mateusz
>     Loskot
>     *Sent:* Sat 2/3/2007 1:02 AM
>     *To:* fdo-internals
>     *Cc:*
>     *Subject:* [fdo-internals] Question about VALIDATE_ALLOCATION
> 
>     Hi,
> 
>     Could anyone explain me what is the purpose of VALIDATE_ALLOCATION
>     macro, in the FdoCommonMistUtil.h ?
> 
>     Is this for use together with nothrow allocator
> 
>     T* p = new (std::nothrow) T()
> 
>     So, does it also mean the nothrow version is used anywhere?
>     In what situations?
>     I'd like to learn the recommended practice behind for FDO?
> 
>     Cheers
>     --
>     Mateusz Loskot
>     http://mateusz.loskot.net
>     _______________________________________________
>     fdo-internals mailing list
>     fdo-internals at lists.osgeo.org
>     http://lists.osgeo.org/mailman/listinfo/fdo-internals
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> fdo-internals mailing list
> fdo-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fdo-internals


-- 
Mateusz Loskot
http://mateusz.loskot.net


More information about the fdo-internals mailing list