• Ben Boeckel's avatar
    ReusableArray: fix build error on GCC7 · 9dfedbe6
    Ben Boeckel authored
    GCC7 outputs the following error without this change:
    
        src/util/ReusableArray.hxx:61:35: error: no matching function for call to ‘swap(size_t&, const size_t&)’
           std::swap(capacity, src.capacity);
    
    which can be resolved by just using an rvalue-reference rather than a
    const rvalue-reference.
    Signed-off-by: 's avatarBen Boeckel <mathstuf@gmail.com>
    9dfedbe6
ReusableArray.hxx 2.73 KB