fix compilation guard for "using std::swap"

[SVN r19009]
This commit is contained in:
Jens Maurer
2003-07-09 23:13:40 +00:00
parent 7d8ab81d48
commit 042d3e08b8

View File

@ -296,7 +296,8 @@ void optional_swap ( optional<T>& x, optional<T>& y )
}
else if ( !!x && !!y )
{
#ifndef __GNUC__
#ifndef BOOST_NO_STDC_NAMESPACE
// allow for Koenig lookup
using std::swap ;
#endif
swap(*x,*y);