14 Jul 23:47
Re: how can I return a 'null' smart pointer?
Nat Goodspeed <nat <at> lindenlab.com>
2008-07-14 21:47:55 GMT
2008-07-14 21:47:55 GMT
Meryl Silverburgh wrote:
> MyAPtr myfunction(MyAVector& v, int size) {
> if (index < v.size()) {
> return v[index];
> } else {
> // how can I return NULL here?
Does it work to return MyAPtr() ?
> }
>
> }
RSS Feed