[LLVMbugs] [Bug 20614] New: slice_array::operator = should be return *this

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 11 05:19:07 PDT 2014


            Bug ID: 20614
           Summary: slice_array::operator = should be return *this
           Product: libc++
           Version: 3.3
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kikairoya+llvm at gmail.com
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

In <valarray>, slice_array::operator= (and other compound assignment operators,
gslice_array's, mask_array's, ...) should be return *this.

// in include/c++/v1/valarray:1213

template <class _Tp>
const slice_array<_Tp>&
slice_array<_Tp>::operator=(const slice_array& __sa) const
    value_type* __t = __vp_;
    const value_type* __s = __sa.__vp_;
    for (size_t __n = __size_; __n; --__n, __t += __stride_, __s +=
        *__t = *__s;

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140811/88f3ccf7/attachment.html>

More information about the llvm-bugs mailing list