Commit 1a2eaf85 by Tobias Schuele

Resolved Clang warnings about unused variables in object pool implementation.

parent d69ac716
...@@ -49,7 +49,7 @@ ReturningTrueIterator::operator++() { ...@@ -49,7 +49,7 @@ ReturningTrueIterator::operator++() {
template<class T, typename ValuePool, class ObjectAllocator> template<class T, typename ValuePool, class ObjectAllocator>
typename ObjectPool<T, ValuePool, ObjectAllocator>:: typename ObjectPool<T, ValuePool, ObjectAllocator>::
ReturningTrueIterator::self_type ObjectPool<T, ValuePool, ObjectAllocator>:: ReturningTrueIterator::self_type ObjectPool<T, ValuePool, ObjectAllocator>::
ReturningTrueIterator::operator++(int junk) { ReturningTrueIterator::operator++(int) {
count_value++; count_value++;
return *this; return *this;
} }
......
...@@ -94,7 +94,7 @@ class ObjectPool { ...@@ -94,7 +94,7 @@ class ObjectPool {
typedef int difference_type; typedef int difference_type;
explicit ReturningTrueIterator(size_t count_value); explicit ReturningTrueIterator(size_t count_value);
self_type operator++(); self_type operator++();
self_type operator++(int junk); self_type operator++(int);
reference operator*(); reference operator*();
pointer operator->(); pointer operator->();
bool operator==(const self_type& rhs); bool operator==(const self_type& rhs);
......
...@@ -36,9 +36,6 @@ namespace containers { ...@@ -36,9 +36,6 @@ namespace containers {
namespace test { namespace test {
class ObjectPoolTestStruct { class ObjectPoolTestStruct {
private: private:
int a;
int b;
int c[40];
int thread_id; int thread_id;
public: public:
explicit ObjectPoolTestStruct(int thread_id); explicit ObjectPoolTestStruct(int thread_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment