summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/std/thread
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-18 12:38:10 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-18 12:38:10 +0000
commit7d44bec117c6da8ddf743a357f621b14ed04b4ca (patch)
treed3e3ad76e04a0068362fb9a131ae775c32b03bcb /libstdc++-v3/include/std/thread
parentb965bfb704d7c9a2380b61aaad0201ef3281bc4c (diff)
downloadppe42-gcc-7d44bec117c6da8ddf743a357f621b14ed04b4ca.tar.gz
ppe42-gcc-7d44bec117c6da8ddf743a357f621b14ed04b4ca.zip
* include/std/thread (__thread_data_base::__run): Make non-const.
* testsuite/30_threads/thread/cons/5.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143483 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/thread')
-rw-r--r--libstdc++-v3/include/std/thread4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/std/thread b/libstdc++-v3/include/std/thread
index 422e3626539..00fb018989f 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:
OpenPOWER on IntegriCloud