This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: empty slices: defined?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]