Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
m_guard = nullptr;
return g;
}
+
+ hp::details::hp_guard*& guard_ref()
+ {
+ return m_guard;
+ }
//@endcond
private:
/// Move-assignment from \p Guard
guarded_ptr& operator=( Guard&& g ) CDS_NOEXCEPT
{
- std::swap( m_pGuard, g.m_guard );
+ std::swap( m_pGuard, g.guard_ref() );
return *this;
}