forked from boostorg/optional
fix compilation guard for "using std::swap"
[SVN r19009]
This commit is contained in:
@ -296,7 +296,8 @@ void optional_swap ( optional<T>& x, optional<T>& y )
|
|||||||
}
|
}
|
||||||
else if ( !!x && !!y )
|
else if ( !!x && !!y )
|
||||||
{
|
{
|
||||||
#ifndef __GNUC__
|
#ifndef BOOST_NO_STDC_NAMESPACE
|
||||||
|
// allow for Koenig lookup
|
||||||
using std::swap ;
|
using std::swap ;
|
||||||
#endif
|
#endif
|
||||||
swap(*x,*y);
|
swap(*x,*y);
|
||||||
|
Reference in New Issue
Block a user