id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 3855,"Xpressive sregex vector fails to compile with gcc 3.4, 4.1",Paul Flew ,Eric Niebler,"Hi I'm trying to use a vector of Boost Xpressive sregex objects. My code is: #include #include using namespace std; using namespace boost::xpressive; int main(int argc, char* argv[]) { vector vec; return 0; } VS2005 compiles my code successfully, but gcc 3.4.5 and 4.1.2 fail with: /include/c++/3.4.5/bits/stl_construct.h: In function `void std::__destroy_aux(_ForwardIterator, _ForwardIterator, __false_type) [with _ForwardIterator = boost::xpressive::sregex*]': /include/c++/3.4.5/bits/stl_construct.h:152: instantiated from `void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = boost::xpressive::sregex*]' /include/c++/3.4.5/bits/stl_vector.h:256: instantiated from `std::vector<_Tp, _Alloc>::~vector() [with _Tp = boost::xpressive::sregex, _Alloc = std::allocator]' ..\test.cpp:9: instantiated from here /include/c++/3.4.5/bits/stl_construct.h:120: error: no matching function for call to `_Destroy(const boost::proto::exprns_::expr, std::allocator > > >&>, 1l>)' Rgds Paul Flew ",Bugs,closed,Boost 1.42.0,xpressive,Boost 1.40.0,Problem,duplicate,xpressive sregex vector,