diff options
author | Jonathan Wakely <jwakely.gcc@gmail.com> | 2009-12-22 12:45:12 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2009-12-22 12:45:12 +0000 |
commit | 6be8006d35fa0a235786df00b1b500422e7866fa (patch) | |
tree | 46ae7866b62c1bd48ae0e720eee6f74da4de8ac4 /libstdc++-v3 | |
parent | d17c29c35fc100402cbfedb0c663eb8e5ffc4b96 (diff) | |
download | gcc-6be8006d35fa0a235786df00b1b500422e7866fa.zip gcc-6be8006d35fa0a235786df00b1b500422e7866fa.tar.gz gcc-6be8006d35fa0a235786df00b1b500422e7866fa.tar.bz2 |
mutex (call_once(once_flag&, _Callable, _Args&&...)): Explicitly qualify with std:: bind calls.
2009-12-22 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/std/mutex (call_once(once_flag&, _Callable, _Args&&...)):
Explicitly qualify with std:: bind calls.
From-SVN: r155397
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/std/mutex | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index fca9703..217b297 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2009-12-22 Jonathan Wakely <jwakely.gcc@gmail.com> + + * include/std/mutex (call_once(once_flag&, _Callable, _Args&&...)): + Explicitly qualify with std:: bind calls. + 2009-12-21 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/42456 diff --git a/libstdc++-v3/include/std/mutex b/libstdc++-v3/include/std/mutex index b3a0438..cc91e95 100644 --- a/libstdc++-v3/include/std/mutex +++ b/libstdc++-v3/include/std/mutex @@ -722,12 +722,12 @@ namespace std call_once(once_flag& __once, _Callable __f, _Args&&... __args) { #ifdef _GLIBCXX_HAVE_TLS - auto __bound_functor = bind(__f, __args...); + auto __bound_functor = std::bind(__f, __args...); __once_callable = &__bound_functor; __once_call = &__once_call_impl<decltype(__bound_functor)>; #else unique_lock<mutex> __functor_lock(__get_once_mutex()); - __once_functor = bind(__f, __args...); + __once_functor = std::bind(__f, __args...); __set_once_functor_lock_ptr(&__functor_lock); #endif |