mirror of
https://github.com/boostorg/ptr_container.git
synced 2026-07-21 13:33:33 +00:00
Add missing static_cast to pop_front().
[SVN r30177]
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user