Commit cd9333a7 by Benjamin Kosnik

[multiple changes]


2004-10-16  Benjamin Kosnik  <bkoz@redhat.com>

	* include/tr1/array: Don't use layout_type.

2004-10-16  Sashan Govender  <sashang@gmail.com>

	* include/tr1/array (array::end const): Fix casting from iterator
	to const_iterator.

From-SVN: r89139
parent 051a6002
2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
* include/tr1/array: Don't use layout_type.
2004-10-16 Sashan Govender <sashang@gmail.com>
* include/tr1/array (array::end const): Fix casting from iterator
to const_iterator.
2004-10-15 Paolo Carlini <pcarlini@suse.de>
* include/ext/bitmap_allocator.h: Qualify ::operator delete.
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment