diff options
author | Jonathan Wakely <jwakely.gcc@gmail.com> | 2013-11-08 17:33:31 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2013-11-08 17:33:31 +0000 |
commit | e15c474a348d9c9e037b1f3d62b58d1c431b8cf2 (patch) | |
tree | d5a65ec6890971962f014cb635311750420620e0 /libstdc++-v3/include | |
parent | f0bc3cc0eae4cdf1c879f1dc1022acf1f9e3a307 (diff) | |
download | gcc-e15c474a348d9c9e037b1f3d62b58d1c431b8cf2.zip gcc-e15c474a348d9c9e037b1f3d62b58d1c431b8cf2.tar.gz gcc-e15c474a348d9c9e037b1f3d62b58d1c431b8cf2.tar.bz2 |
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
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r-- | libstdc++-v3/include/bits/regex_compiler.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/regex_compiler.h b/libstdc++-v3/include/bits/regex_compiler.h index 741098f..b9f8127 100644 --- a/libstdc++-v3/include/bits/regex_compiler.h +++ b/libstdc++-v3/include/bits/regex_compiler.h @@ -134,12 +134,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<typename _Ch, typename _Tr, typename _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> 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> |