From 8b6ded8d4ff7292cc0c4d9c24a6670d97755aaeb Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Sun, 18 Jan 2009 12:38:10 +0000 Subject: thread (__thread_data_base::__run): Make non-const. * include/std/thread (__thread_data_base::__run): Make non-const. * testsuite/30_threads/thread/cons/5.cc: New. From-SVN: r143483 --- libstdc++-v3/include/std/thread | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libstdc++-v3/include/std/thread') diff --git a/libstdc++-v3/include/std/thread b/libstdc++-v3/include/std/thread index 422e362..00fb018 100644 --- a/libstdc++-v3/include/std/thread +++ b/libstdc++-v3/include/std/thread @@ -65,7 +65,7 @@ namespace std __thread_data_base() = default; virtual ~__thread_data_base() = default; - virtual void __run() const = 0; + virtual void __run() = 0; __gthread_t _M_thread_handle; __thread_data_ptr _M_this_ptr; @@ -80,7 +80,7 @@ namespace std : _M_func(std::forward<_Callable>(__f)) { } - void __run() const + void __run() { _M_func(); } private: -- cgit v1.1