Boost logo

Geometry :

Subject: [ggl] Definition of exception types
From: Mateusz Loskot (mateusz)
Date: 2009-06-16 14:24:07


Bruno Lalande wrote:
> Hi,
>
>> Yes. The code I presented was there to define the error_type usable as the
>> default argument:
>>
>> some_function(..., error_type& e = throws);
>
> OK, wasn't obvious to me. I guess the "error_type" in the line above
> is actually what you call "error_code" in the adaptation code you sent
> after.
>
> This solution sounds definitively good to me. It makes error handling
> in GGL very flexible to the users' needs, and makes us already
> compliant to the upcoming standard.

Yes, I'm supportive to Bruno's opinion.
The earlier we decide, the easier it will be to marry current
code with this solution.

Just a loose idea, may be it would be good idea to prepare the proposal
as RFC?

A few examples to explain it better:
http://trac.osgeo.org/gdal/wiki/RfcList

Cheers,

-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

Geometry list run by mateusz at loskot.net