From b051dd665bac7e3045469ae2f10a0bfb8f178287 Mon Sep 17 00:00:00 2001
From: Robert Kawulak
operator T&() { return x ; }
T const &data() const { return x ; }
T& data() { return x ; }
-
void swap( value_initialized<T>& );
+
void swap( value_initialized& );
private :
unspecified x ;
@@ -313,6 +313,12 @@ so for those compilers that need to have such a workaround, based on the
return x.data() ;
}
+
template<class T>
+
void swap ( value_initialized<T>& lhs, value_initialized<T>& rhs )
+
{
+
lhs.swap(rhs) ;
+
}
+
} // namespace boost
@@ -385,7 +391,7 @@ the wrapped object is always performed with the get()
idiom:
get()
idiom: