git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@510 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2012-07-22 07:13:10 +00:00
parent 4648c72422
commit 7ed1b9ed51

View file

@ -63,13 +63,13 @@ namespace conversion
const T* t_; const T* t_;
}; };
struct data struct any
{ {
template< typename T > template< typename T >
data( const T& t ) any( const T& t )
: h_( new holder_imp< T >( t ) ) : h_( new holder_imp< T >( t ) )
{} {}
~data() ~any()
{ {
delete h_; delete h_;
} }
@ -78,7 +78,7 @@ namespace conversion
} }
} }
inline stream& operator<<( stream& s, const detail::conversion::data& d ) inline stream& operator<<( stream& s, const detail::conversion::any& d )
{ {
d.h_->serialize( *s.s_ ); d.h_->serialize( *s.s_ );
return s; return s;