Add missing static_cast to pop_front().

[SVN r30177]
This commit is contained in:
Jonathan Wakely
2005-07-19 12:03:08 +00:00
parent b286f5b9b1
commit ae86269a7b
@@ -211,7 +211,8 @@ namespace ptr_container_detail
if( this->empty() )
throw bad_ptr_container_operation( "'pop_front()' on"
" empty container" );
auto_type ptr( this->c_private().front() ); // nothrow
auto_type ptr( static_cast<value_type>(
this->c_private().front() ) ); // nothrow
this->c_private().pop_front(); // nothrow
return ptr_container_detail::move( ptr );
}