Boost C++ Libraries: Ticket #3855: Xpressive sregex vector fails to compile with gcc 3.4, 4.1 https://svn.boost.org/trac10/ticket/3855 <p> Hi </p> <p> I'm trying to use a vector of Boost Xpressive sregex objects. My code is: </p> <p> #include &lt;vector&gt; #include &lt;boost/xpressive/xpressive_dynamic.hpp&gt; </p> <p> using namespace std; using namespace boost::xpressive; </p> <p> int main(int argc, char* argv[]) { </p> <blockquote> <p> vector&lt;sregex&gt; vec; return 0; </p> </blockquote> <p> } </p> <p> VS2005 compiles my code successfully, but gcc 3.4.5 and 4.1.2 fail with: </p> <p> &lt;path&gt;/include/c++/3.4.5/bits/stl_construct.h: In function `void std::<span class="underline">destroy_aux(_ForwardIterator, _ForwardIterator, </span>false_type) [with _ForwardIterator = boost::xpressive::sregex*]': &lt;path&gt;/include/c++/3.4.5/bits/stl_construct.h:152: instantiated from `void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = boost::xpressive::sregex*]' &lt;path&gt;/include/c++/3.4.5/bits/stl_vector.h:256: instantiated from `std::vector&lt;_Tp, _Alloc&gt;::~vector() [with _Tp = boost::xpressive::sregex, _Alloc = std::allocator&lt;boost::xpressive::sregex&gt;]' ..\test.cpp:9: instantiated from here &lt;path&gt;/include/c++/3.4.5/bits/stl_construct.h:120: error: no matching function for call to `_Destroy(const boost::proto::exprns_::expr&lt;boost::proto::tag::address_of, boost::proto::argsns_::list1&lt;boost::xpressive::basic_regex&lt;<span class="underline">gnu_cxx::</span>normal_iterator&lt;const char*, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt;&amp;&gt;, 1l&gt;)' </p> <p> Rgds </p> <p> Paul Flew </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3855 Trac 1.4.3 Eric Niebler Sat, 23 Jan 2010 02:33:52 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3855#comment:1 https://svn.boost.org/trac10/ticket/3855#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Dupe of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3712" title="#3712: Bugs: Bug in xpressive (closed: fixed)">#3712</a>. Fixed on trunk and release, will be part of 1.42. </p> Ticket