sp_unary_addr_test added (reported by Scott French)

[SVN r38137]
This commit is contained in:
Peter Dimov
2007-07-04 16:35:44 +00:00
parent ed8db8b5f2
commit ecb41cb150
4 changed files with 66 additions and 2 deletions
+2 -2
View File
@@ -147,7 +147,7 @@ public:
virtual void * get_deleter( std::type_info const & ti )
{
return ti == typeid(D)? &del: 0;
return ti == typeid(D)? &reinterpret_cast<char&>( del ): 0;
}
#if defined(BOOST_SP_USE_STD_ALLOCATOR)
@@ -217,7 +217,7 @@ public:
virtual void * get_deleter( std::type_info const & ti )
{
return ti == typeid( D )? &d_: 0;
return ti == typeid( D )? &reinterpret_cast<char&>( d_ ): 0;
}
};