empty slices: defined?

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Nov 8 00:49:00 GMT 2005


DJ Delorie <dj@redhat.com> writes:

| For gslice, the problem line is this one (and the one after it):
| 
|   template<typename _Tp>
|     inline _Expr<_GClos<_ValArray,_Tp>, _Tp>
|     valarray<_Tp>::operator[](const gslice& __gs) const
|     {
|       typedef _GClos<_ValArray,_Tp> _Closure;
|       return _Expr<_Closure, _Tp>
| 	(_Closure(_Array<_Tp>(_M_data), __gs._M_index->_M_index));	<<<<<<<

If __gs._M_index is null, what would be computing here?

-- Gaby



More information about the Libstdc++ mailing list