fixed mistake in CCollection::remove, detected by GCC

refs #108
This commit is contained in:
Mathew Sutcliffe
2014-01-29 22:59:53 +00:00
parent c27da2e38a
commit 04ab68917f

View File

@@ -191,7 +191,7 @@ namespace BlackMisc
* \brief Efficient remove using the find and erase of the implementation container. Typically O(log n).
* \pre The sequence must be initialized.
*/
void remove(const T &object) { auto it = find(object); if (it != end()) { erase(pos); } }
void remove(const T &object) { auto it = find(object); if (it != end()) { erase(it); } }
/*!
* \brief Test for equality.