Commit e15c474a by Jonathan Wakely Committed by Jonathan Wakely

regex_compiler.h (__detail::__has_contiguous_iter): vector<bool> storage is not contiguous.

	* include/bits/regex_compiler.h (__detail::__has_contiguous_iter):
	vector<bool> storage is not contiguous.

From-SVN: r204582
parent f0bc3cc0
...@@ -32,6 +32,9 @@ ...@@ -32,6 +32,9 @@
so that std::basic_string<C> and std::vector<C> iterators dispatch to so that std::basic_string<C> and std::vector<C> iterators dispatch to
the const C* compiler. the const C* compiler.
* include/bits/regex_compiler.h (__detail::__has_contiguous_iter):
vector<bool> storage is not contiguous.
2013-11-06 Jonathan Wakely <jwakely.gcc@gmail.com> 2013-11-06 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/regex_automaton.h (_S_opcode_word_boundry): Rename to * include/bits/regex_automaton.h (_S_opcode_word_boundry): Rename to
......
...@@ -134,12 +134,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -134,12 +134,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template<typename _Ch, typename _Tr, typename _Alloc> template<typename _Ch, typename _Tr, typename _Alloc>
struct __has_contiguous_iter<std::basic_string<_Ch, _Tr, _Alloc>> struct __has_contiguous_iter<std::basic_string<_Ch, _Tr, _Alloc>>
: std::true_type : std::true_type // string<Ch> storage is contiguous
{ }; { };
template<typename _Tp, typename _Alloc> template<typename _Tp, typename _Alloc>
struct __has_contiguous_iter<std::vector<_Tp, _Alloc>> struct __has_contiguous_iter<std::vector<_Tp, _Alloc>>
: std::true_type : std::true_type // vector<Tp> storage is contiguous
{ };
template<typename _Alloc>
struct __has_contiguous_iter<std::vector<bool, _Alloc>>
: std::false_type // vector<bool> storage is not contiguous
{ }; { };
template<typename _Tp> template<typename _Tp>
......
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