From 18c7fb72b5ccfc0182a208d6ac897e23346ff77c Mon Sep 17 00:00:00 2001 From: Fernando Cacciola Date: Thu, 24 Feb 2005 16:04:49 +0000 Subject: [PATCH] ADL problem (with VC7.1) fixed [SVN r27495] --- value_init.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/value_init.htm b/value_init.htm index d478659..5412239 100644 --- a/value_init.htm +++ b/value_init.htm @@ -131,7 +131,7 @@ data member:

template class value_initialized<T>

-
namespace boost {

template<class T>
class value_initialized
{
public :
value_initialized() : x() {}
operator T&() const { return x ; }
T& data() const { return x ; }

private :
impll-defined x ;
} ;

template<class T>
T const& get ( value_initialized<T> const& x )
{
return x.data() ;
}

template<class T>
T& get ( value_initialized<T>& x )
{
return x.data() ;
}

} // namespace boost
+
namespace boost {

template<class T>
class value_initialized
{
public :
value_initialized() : x() {}
operator T&() const { return x ; }
T& data() const { return x ; }

private :
unspecified x ;
} ;

template<class T>
T const& get ( value_initialized<T> const& x )
{
return x.data() ;
}

template<class T>
T& get ( value_initialized<T>& x )
{
return x.data() ;
}

} // namespace boost

An object of this template class is a T-wrapper convertible to 'T&' whose wrapped object (data member of type T) @@ -216,4 +216,4 @@ at www.yahoogroups.com/list/boos
- + \ No newline at end of file