2
0
mirror of https://github.com/boostorg/thread.git synced 2026-01-23 06:02:14 +00:00

Added static cast in move of upgrade_lock to work with MSVC10 and g++4.5

[SVN r62717]
This commit is contained in:
Anthony Williams
2010-06-10 07:38:23 +00:00
parent 044c3cc11e
commit 2fdcefac05

View File

@@ -489,7 +489,7 @@ namespace boost
template<typename Mutex>
inline upgrade_lock<Mutex>&& move(upgrade_lock<Mutex>&& ul)
{
return ul;
return static_cast<upgrade_lock<Mutex>&&>(ul);
}
#endif
template<typename Mutex>