Compilation fixes

This commit is contained in:
Paul-Louis Ageneau
2020-06-04 14:08:21 +02:00
parent c823249a72
commit 6c8fe8ca51
5 changed files with 11 additions and 5 deletions

View File

@ -60,7 +60,10 @@ private:
template <typename T>
Queue<T>::Queue(size_t limit, amount_function func) : mLimit(limit), mAmount(0) {
mAmountFunction = func ? func : [](const T &element) -> size_t { return 1; };
mAmountFunction = func ? func : [](const T &element) -> size_t {
static_cast<void>(element);
return 1;
};
}
template <typename T> Queue<T>::~Queue() { stop(); }