From e15c474a348d9c9e037b1f3d62b58d1c431b8cf2 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Fri, 8 Nov 2013 17:33:31 +0000 Subject: [PATCH] regex_compiler.h (__detail::__has_contiguous_iter): vector storage is not contiguous. * include/bits/regex_compiler.h (__detail::__has_contiguous_iter): vector storage is not contiguous. From-SVN: r204582 --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/include/bits/regex_compiler.h | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ea2e6c7..3ecd3ba 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -32,6 +32,9 @@ so that std::basic_string and std::vector iterators dispatch to the const C* compiler. + * include/bits/regex_compiler.h (__detail::__has_contiguous_iter): + vector storage is not contiguous. + 2013-11-06 Jonathan Wakely * include/bits/regex_automaton.h (_S_opcode_word_boundry): Rename to 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 struct __has_contiguous_iter> - : std::true_type + : std::true_type // string storage is contiguous { }; template struct __has_contiguous_iter> - : std::true_type + : std::true_type // vector storage is contiguous + { }; + + template + struct __has_contiguous_iter> + : std::false_type // vector storage is not contiguous { }; template -- 2.7.4