From df229074ac7dcb832b6a4ee94098743ec76d1bd9 Mon Sep 17 00:00:00 2001 From: Roland Schwarz Date: Fri, 13 Oct 2006 16:41:51 +0000 Subject: [PATCH] Made size() a constant member function. [SVN r35589] --- include/boost/thread/thread.hpp | 2 +- src/thread.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/thread/thread.hpp b/include/boost/thread/thread.hpp index f6ad5856..a3575ee2 100644 --- a/include/boost/thread/thread.hpp +++ b/include/boost/thread/thread.hpp @@ -65,7 +65,7 @@ public: void add_thread(thread* thrd); void remove_thread(thread* thrd); void join_all(); - int size(); + int size() const; private: std::list m_threads; diff --git a/src/thread.cpp b/src/thread.cpp index 557f7d92..185f45f5 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -378,7 +378,7 @@ void thread_group::join_all() } } -int thread_group::size() +int thread_group::size() const { return m_threads.size(); }