[clazy] [Bug 362943] New: false positive for reserve candidate

via KDE Bugzilla bugzilla_noreply at kde.org
Wed May 11 14:52:30 BST 2016


https://bugs.kde.org/show_bug.cgi?id=362943

            Bug ID: 362943
           Summary: false positive for reserve candidate
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: other
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: eric.lemanissier at gmail.com
                CC: smartins at kde.org

In the following code, I get the warning "Reserve candidate
[-Wclazy-reserve-candidates]" on the last line:

    m_tmpBuf.reserve(m_tmpBuf.size() + vect.size());
    for(const auto &i:vect)
    {
        m_tmpBuf << i;
    }

Reproducible: Always

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list