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@lists.boost.org
> From: rutger@terborg.net
> 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@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: nasos_i@hotmail.com


The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. Get busy.