summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/tr1/array
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/tr1/array')
-rw-r--r--libstdc++-v3/include/tr1/array5
1 files changed, 2 insertions, 3 deletions
diff --git a/libstdc++-v3/include/tr1/array b/libstdc++-v3/include/tr1/array
index e41fced7f3b..7f092ad4852 100644
--- a/libstdc++-v3/include/tr1/array
+++ b/libstdc++-v3/include/tr1/array
@@ -55,9 +55,8 @@ namespace tr1
typedef ptrdiff_t difference_type;
typedef std::reverse_iterator<iterator> reverse_iterator;
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
- typedef char layout_type[sizeof(_Tp)] __attribute__ ((aligned(__alignof__(_Tp))));
- layout_type _M_instance[_Nm];
+ value_type _M_instance[_Nm];
// No explicit construct/copy/destroy for aggregate type.
@@ -82,7 +81,7 @@ namespace tr1
const_iterator
end() const
- { return reinterpret_cast<iterator>(&_M_instance[_S_index - 1]); }
+ { return reinterpret_cast<const_iterator>(&_M_instance[_S_index - 1]); }
reverse_iterator
rbegin()
OpenPOWER on IntegriCloud