diff --git a/value_init.htm b/value_init.htm index 4ae9177..b82792f 100644 --- a/value_init.htm +++ b/value_init.htm @@ -295,7 +295,7 @@ so for those compilers that need to have such a workaround, based on the
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:


operator T&();
T const &data() const;
T& data(); -
void swap( value_initialized<T>& ); +
void swap( initialized& );

private :
unspecified x ; @@ -397,6 +403,9 @@ the wrapped object is always performed with the get() idiom:


template<class T>
T& get ( initialized<T>& x );
+
template<class T> +
void swap ( initialized<T>& lhs, initialized<T>& rhs ); +

} // namespace boost