Boost logo

Ublas :

Subject: Re: [ublas] [bindings][lapack] Error handling
From: Nasos Iliopoulos (nasos_i_at_[hidden])
Date: 2010-07-27 08:23:09


Rutger,

My personal preference is option 1, as I believe this gives cleaner and more efficient code. i.e. something like:
int flag;
...
if (flag = somefunc(A,B,C,D,E,F,G)) {

} else {
//handle error or whatever
}

Best
Nasos

> To: ublas_at_[hidden]
> From: rutger_at_[hidden]
> Date: Tue, 27 Jul 2010 11:30:58 +0200
> Subject: [ublas] [bindings][lapack] Error handling
>
>
> Hello all,
>
> looking at the lange case, I am wondering what would be your preferred way
> of handling LAPACK's info parameter?
>
> 1) as a return type
> 2) pass it as the last parameter / argument
> 3) like 2, but then using boost::system_error
> 4) using exceptions
> 5) some of the above, may be configured using a Policy
>
> Thanks,
> Cheers,
>
> Rutger
>
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: nasos_i_at_[hidden]
                                               
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4