aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/bits/forward_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/bits/forward_list.h')
-rw-r--r--libstdc++-v3/include/bits/forward_list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/forward_list.h b/libstdc++-v3/include/bits/forward_list.h
index dcb696f..d611ade 100644
--- a/libstdc++-v3/include/bits/forward_list.h
+++ b/libstdc++-v3/include/bits/forward_list.h
@@ -305,11 +305,11 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
_Node_alloc_type&
_M_get_Node_allocator() noexcept
- { return *static_cast<_Node_alloc_type*>(&this->_M_impl); }
+ { return this->_M_impl; }
const _Node_alloc_type&
_M_get_Node_allocator() const noexcept
- { return *static_cast<const _Node_alloc_type*>(&this->_M_impl); }
+ { return this->_M_impl; }
_Fwd_list_base()
: _M_impl() { }