Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update array.hpp #3769

Merged
merged 4 commits into from
Jan 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions RELICENSE/xqcool.mq
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Permission to Relicense under MPLv2 or any other share-alike OSI approved license chosen by the current ZeroMQ BDFL

This is a statement by xqcool
that grants permission to relicense its copyrights in the libzmq C++
library (ZeroMQ) under the Mozilla Public License v2 (MPLv2) or any other
share-alike Open Source Initiative approved license chosen by the current
ZeroMQ BDFL (Benevolent Dictator for Life).

A portion of the commits made by the Github handle "xqcool", with
commit author "xqcool <xuquan316@live.com>", are copyright of xqcool .
This document hereby grants the libzmq project team to relicense libzmq,
including all past, present and future contributions of the author listed above.

xqcool
2020/01/01
5 changes: 3 additions & 2 deletions src/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ template <typename T, int ID = 0> class array_t

inline void erase (size_type index_)
{
if (_items.back ())
((item_t *) _items.back ())->set_array_index ((int) index_);
if (_items.empty ())
return;
((item_t *) _items.back ())->set_array_index ((int) index_);
_items[index_] = _items.back ();
_items.pop_back ();
}
Expand Down