[Boost-bugs] [Boost C++ Libraries] #3855: Xpressive sregex vector fails to compile with gcc 3.4, 4.1

Subject: [Boost-bugs] [Boost C++ Libraries] #3855: Xpressive sregex vector fails to compile with gcc 3.4, 4.1
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-22 17:29:54


#3855: Xpressive sregex vector fails to compile with gcc 3.4, 4.1
--------------------------------------------+-------------------------------
 Reporter: Paul Flew <flewpaul@…> | Owner: eric_niebler
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: xpressive
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: xpressive sregex vector |
--------------------------------------------+-------------------------------
 Hi

 I'm trying to use a vector of Boost Xpressive sregex objects. My code is:

 #include <vector>
 #include <boost/xpressive/xpressive_dynamic.hpp>

 using namespace std;
 using namespace boost::xpressive;

 int main(int argc, char* argv[])
 {
        vector<sregex> vec;
        return 0;
 }

 VS2005 compiles my code successfully, but gcc 3.4.5 and 4.1.2 fail with:

 <path>/include/c++/3.4.5/bits/stl_construct.h: In function `void
 std::__destroy_aux(_ForwardIterator, _ForwardIterator, __false_type)
 [with _ForwardIterator = boost::xpressive::sregex*]':
 <path>/include/c++/3.4.5/bits/stl_construct.h:152: instantiated from
 `void std::_Destroy(_ForwardIterator, _ForwardIterator) [with
 _ForwardIterator = boost::xpressive::sregex*]'
 <path>/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<boost::xpressive::sregex>]'
 ..\test.cpp:9: instantiated from here
 <path>/include/c++/3.4.5/bits/stl_construct.h:120: error: no matching
 function for call to `_Destroy(const
 boost::proto::exprns_::expr<boost::proto::tag::address_of,
 boost::proto::argsns_::list1<boost::xpressive::basic_regex<__gnu_cxx::__normal_iterator<const
 char*, std::basic_string<char, std::char_traits<char>,
 std::allocator<char> > > >&>, 1l>)'

 Rgds

 Paul Flew

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3855>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC