forked from boostorg/container
Fixes #206 ("operator-> on static_vector::iterator causes cast alignment warning")
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
#include <boost/container/detail/type_traits.hpp>
|
||||
#include <boost/move/adl_move_swap.hpp> //adl_move_swap
|
||||
|
||||
#include <boost/move/detail/force_ptr.hpp> //adl_move_swap
|
||||
|
||||
|
||||
#include "varray_util.hpp"
|
||||
|
||||
@@ -2105,12 +2107,12 @@ private:
|
||||
|
||||
pointer ptr()
|
||||
{
|
||||
return pointer(reinterpret_cast<Value*>(this));
|
||||
return pointer(move_detail::force_ptr<Value*>(this));
|
||||
}
|
||||
|
||||
const_pointer ptr() const
|
||||
{
|
||||
return const_pointer(reinterpret_cast<const Value*>(this));
|
||||
return const_pointer(move_detail::force_ptr<const Value*>(this));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user