Boost logo

Boost :

From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2003-11-19 20:54:09


Hi,

I downloaded and installed Boost CVS 20031119 to check out the fixes for the
regex shadow warnings. I tried to compile all of the example applications,
but several failed with nasty template warnings. (Some example applications
compiled cleanly.)

There were also a few more shadow warnings, but they all look like they're
caused by globals in the example applications shadowing parts of the regex
library, so they don't matter.
 
The errors and warnings were:
[regex_search_example.cpp]
regex_search_example.cpp: In function `void IndexClasses(map_type&, const
   std::string&)':
regex_search_example.cpp:66: error: invalid conversion from `unsigned int'
to `
   boost::regex_constants::_match_flags'
regex_search_example.cpp:66: error: initializing argument 5 of `bool
   boost::regex_search(BidiIterator, BidiIterator,
   boost::match_results<Iterator, Allocator>&, const
   boost::reg_expression<charT, traits, Allocator2>&,
   boost::regex_constants::_match_flags) [with BidiIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
>
>, charT = char, traits = boost::regex_traits<char>, Allocator2 =
   std::allocator<char>]'

[regex_grep_example_1.cpp]
C:/MinGW/include/boost/regex/v4/match_results.hpp: In member function
`typename
   Allocator::const_reference boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>]':
regex_grep_example_1.cpp:70: instantiated from here
C:/MinGW/include/boost/regex/v4/match_results.hpp:121: error: could not
convert
   `this->std::vector<_Tp, _Alloc>::operator[](unsigned int) const [with _Tp
=
   boost::sub_match<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
>,
   _Alloc = std::allocator<char>](sub)' to `const char&'
C:/MinGW/include/boost/regex/v4/match_results.hpp:123: error: could not
convert
   `this->boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> >::m_null' to `const char&'
regex_grep_example_1.cpp: In member function `bool
   IndexClassesPred::operator()(const
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> >&)':
regex_grep_example_1.cpp:70: error: request for member `first' in `
   (+what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](5)', which is of non-class type `const char'
regex_grep_example_1.cpp:70: error: request for member `second' in `
   (+what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](5)', which is of non-class type `const char'
regex_grep_example_1.cpp:70: error: request for member `first' in `
   (+what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](6)', which is of non-class type `const char'
regex_grep_example_1.cpp:70: error: request for member `second' in `
   (+what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](6)', which is of non-class type `const char'
regex_grep_example_1.cpp:71: error: request for member `first' in `
   (+what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](5)', which is of non-class type `const char'
C:/MinGW/include/boost/regex/v4/regex_grep.hpp: In function `unsigned int
   boost::regex_grep(Predicate, BidiIterator, BidiIterator, const
   boost::reg_expression<charT, traits, Allocator2>&,
   boost::regex_constants::_match_flags) [with Predicate = IndexClassesPred,
   BidiIterator = __gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   charT = char, traits = boost::regex_traits<char>, Allocator =
   std::allocator<char>]':
regex_grep_example_1.cpp:81: instantiated from here
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:52: error: no match for call
to
   `(IndexClassesPred)
(boost::match_results<__gnu_cxx::__normal_iterator<const
   char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char>
> >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<const
   char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char>
> > > > >&)'
regex_grep_example_1.cpp:65: error: candidates are: bool
   IndexClassesPred::operator()(const
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> >&)
regex_grep_example_1.cpp:81: instantiated from here
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:68: error: no match for call
to
   `(IndexClassesPred)
(boost::match_results<__gnu_cxx::__normal_iterator<const
   char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char>
> >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<const
   char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char>
> > > > >&)'
regex_grep_example_1.cpp:65: error: candidates are: bool
   IndexClassesPred::operator()(const
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> >&)

[regex_grep_example_2.cpp]

C:/MinGW/include/boost/regex/v4/match_results.hpp: In member function
`typename
   Allocator::const_reference boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>]':
regex_grep_example_2.cpp:68: instantiated from here
C:/MinGW/include/boost/regex/v4/match_results.hpp:121: error: could not
convert
   `this->std::vector<_Tp, _Alloc>::operator[](unsigned int) const [with _Tp
=
   boost::sub_match<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
>,
   _Alloc = std::allocator<char>](sub)' to `const char&'
C:/MinGW/include/boost/regex/v4/match_results.hpp:123: error: could not
convert
   `this->boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> >::m_null' to `const char&'
regex_grep_example_2.cpp: In function `bool grep_callback(const
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> >&)':
regex_grep_example_2.cpp:68: error: request for member `first' in `
   (+what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](5)', which is of non-class type `const char'
regex_grep_example_2.cpp:68: error: request for member `second' in `
   (+what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](5)', which is of non-class type `const char'
regex_grep_example_2.cpp:68: error: request for member `first' in `
   (+what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](6)', which is of non-class type `const char'
regex_grep_example_2.cpp:68: error: request for member `second' in `
   (+what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](6)', which is of non-class type `const char'
regex_grep_example_2.cpp:69: error: request for member `first' in `
   (+what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](5)', which is of non-class type `const char'
C:/MinGW/include/boost/regex/v4/regex_grep.hpp: In function `unsigned int
   boost::regex_grep(Predicate, BidiIterator, BidiIterator, const
   boost::reg_expression<charT, traits, Allocator2>&,
   boost::regex_constants::_match_flags) [with Predicate = bool (*)(const
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> >&), BidiIterator =
__gnu_cxx::__normal_iterator<const
   char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char>
> >, charT = char, traits = boost::regex_traits<char>, Allocator =
   std::allocator<char>]':
regex_grep_example_2.cpp:79: instantiated from here
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:52: error: could not convert
`m'
   to `const boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> >&'
regex_grep_example_2.cpp:79: instantiated from here
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:68: error: could not convert
`m'
   to `const boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> >&'
C:/MinGW/include/boost/regex/v4/match_results.hpp: In member function `void
   boost::match_results<RandomAccessIterator, Allocator>::maybe_assign(const
   boost::match_results<RandomAccessIterator, Allocator>&) [with
   RandomAccessIterator = __gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   Allocator =
   std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
>
>]':
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:387: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::match_match() [with BidiIterator
= __gnu_cxx::__normal_iterator<const char*,
 std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
Allocator = std::allocator<boost::sub_match<_
_gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >, t
raits = boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_non_recursive.hpp:144:
instantiated from `bool boost::re_detail::perl_mat
cher<BidiIterator, Allocator, traits, Allocator2>::match_all_states() [with
BidiIterator = __gnu_cxx::__normal_iterator<
const char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, Allocator = std::allocator<boost:
:sub_match<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char
> > > > >, traits = boost::regex_traits<char>, Allocator2 =
std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:249: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::match_prefix() [with
BidiIterator = __gnu_cxx::__normal_iterator<const char*
, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
Allocator = std::allocator<boost::sub_match<
__gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >,
traits = boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:636: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::find_restart_any() [with
BidiIterator = __gnu_cxx::__normal_iterator<const c
har*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >
>, Allocator = std::allocator<boost::sub_ma
tch<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >
>, traits = boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:159: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::find() [with BidiIterator =
__gnu_cxx::__normal_iterator<const char*, std::b
asic_string<char, std::char_traits<char>, std::allocator<char> > >,
Allocator = std::allocator<boost::sub_match<__gnu_cx
x::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >, traits =
 boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:49: instantiated from
`unsigned int boost::regex_grep(Predicate, BidiIt
erator, BidiIterator, const boost::reg_expression<charT, traits,
Allocator2>&, boost::regex_constants::_match_flags) [wi
th Predicate = bool (*)(const
boost::match_results<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std
::char_traits<char>, std::allocator<char> > >, std::allocator<char> >&),
BidiIterator = __gnu_cxx::__normal_iterator<con
st char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, charT = char, traits = boost::regex_
traits<char>, Allocator = std::allocator<char>]'
regex_grep_example_2.cpp:79: instantiated from here
C:/MinGW/include/boost/regex/v4/match_results.hpp:264: warning: declaration
of
   `base' shadows a global declaration
regex_grep_example_2.cpp:60: warning: shadowed declaration is here

[regex_grep_example_3.cpp]

regex_grep_example_3.cpp: In constructor `class_index::class_index()':
regex_grep_example_3.cpp:62: warning: `class_index::index' will be
initialized
   after
regex_grep_example_3.cpp:61: warning: `boost::regex
class_index::expression'
C:/MinGW/include/boost/regex/v4/match_results.hpp: In member function
`typename
   Allocator::const_reference boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>]':
regex_grep_example_3.cpp:81: instantiated from here
C:/MinGW/include/boost/regex/v4/match_results.hpp:121: error: could not
convert
   `this->std::vector<_Tp, _Alloc>::operator[](unsigned int) const [with _Tp
=
   boost::sub_match<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
>,
   _Alloc = std::allocator<char>](sub)' to `const char&'
C:/MinGW/include/boost/regex/v4/match_results.hpp:123: error: could not
convert
   `this->boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> >::m_null' to `const char&'
regex_grep_example_3.cpp: In member function `bool
 
class_index::grep_callback(boost::match_results<__gnu_cxx::__normal_iterator
<const
   char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char>
> >, std::allocator<char> >)':
regex_grep_example_3.cpp:81: error: request for member `first' in `
   (&what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](5)', which is of non-class type `const char'
regex_grep_example_3.cpp:81: error: request for member `second' in `
   (&what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](5)', which is of non-class type `const char'
regex_grep_example_3.cpp:81: error: request for member `first' in `
   (&what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](6)', which is of non-class type `const char'
regex_grep_example_3.cpp:81: error: request for member `second' in `
   (&what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](6)', which is of non-class type `const char'
regex_grep_example_3.cpp:82: error: request for member `first' in `
   (&what)->boost::match_results<RandomAccessIterator,
   Allocator>::operator[](int) const [with RandomAccessIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<char>](5)', which is of non-class type `const char'
C:/MinGW/include/boost/regex/v4/regex_grep.hpp: In function `unsigned int
   boost::regex_grep(Predicate, BidiIterator, BidiIterator, const
   boost::reg_expression<charT, traits, Allocator2>&,
   boost::regex_constants::_match_flags) [with Predicate =
   std::binder1st<std::mem_fun1_t<bool, class_index,
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> > > >, BidiIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, charT = char, traits =
   boost::regex_traits<char>, Allocator = std::allocator<char>]':
regex_grep_example_3.cpp:95: instantiated from here
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:52: error: no match for call
to
   `(std::binder1st<std::mem_fun1_t<bool, class_index,
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> > > >) (
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
> >
>&)'
C:/MinGW/include/c++/3.3/bits/stl_function.h:361: error: candidates are:
   typename _Operation::result_type
   std::binder1st<_Operation>::operator()(typename
   _Operation::second_argument_type&) const [with _Operation =
   std::mem_fun1_t<bool, class_index,
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> > >]
C:/MinGW/include/c++/3.3/bits/stl_function.h:367: error:
   typename _Operation::result_type
   std::binder1st<_Operation>::operator()(typename
   _Operation::second_argument_type&) const [with _Operation =
   std::mem_fun1_t<bool, class_index,
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> > >]
regex_grep_example_3.cpp:95: instantiated from here
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:68: error: no match for call
to
   `(std::binder1st<std::mem_fun1_t<bool, class_index,
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> > > >) (
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
> >
>&)'
C:/MinGW/include/c++/3.3/bits/stl_function.h:361: error: candidates are:
   typename _Operation::result_type
   std::binder1st<_Operation>::operator()(typename
   _Operation::second_argument_type&) const [with _Operation =
   std::mem_fun1_t<bool, class_index,
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> > >]
C:/MinGW/include/c++/3.3/bits/stl_function.h:367: error:
   typename _Operation::result_type
   std::binder1st<_Operation>::operator()(typename
   _Operation::second_argument_type&) const [with _Operation =
   std::mem_fun1_t<bool, class_index,
   boost::match_results<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   std::allocator<char> > >]

[regex_split_example_2.cpp]

C:/MinGW/include/boost/regex/v4/regex_split.hpp: In function `size_t
   boost::regex_split(OutputIterator, std::basic_string<charT, Traits1,
   Alloc1>&, const boost::reg_expression<charT, Traits2, Alloc2>&,
   boost::regex_constants::_match_flags) [with OutputIterator =
   std::back_insert_iterator<std::list<std::string,
std::allocator<std::string>
> >, charT = char, Traits1 = std::char_traits<char>, Alloc1 =
   std::allocator<char>, Traits2 = boost::regex_traits<char>, Alloc2 =
   std::allocator<char>]':
regex_split_example_2.cpp:62: instantiated from here
C:/MinGW/include/boost/regex/v4/regex_split.hpp:130: warning: declaration of
`e
   ' shadows a global declaration
regex_split_example_2.cpp:31: warning: shadowed declaration is here
C:/MinGW/include/boost/regex/v4/regex_split.hpp: In function `size_t
   boost::regex_split(OutputIterator, std::basic_string<charT, Traits1,
   Alloc1>&, const boost::reg_expression<charT, Traits2, Alloc2>&,
   boost::regex_constants::_match_flags, unsigned int) [with OutputIterator
=
   std::back_insert_iterator<std::list<std::string,
std::allocator<std::string>
> >, charT = char, Traits1 = std::char_traits<char>, Alloc1 =
   std::allocator<char>, Traits2 = boost::regex_traits<char>, Alloc2 =
   std::allocator<char>]':
C:/MinGW/include/boost/regex/v4/regex_split.hpp:131: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::string>
> >, cha
rT = char, Traits1 = std::char_traits<char>, Alloc1 = std::allocator<char>,
Traits2 = boost::regex_traits<char>, Alloc2
= std::allocator<char>]'
regex_split_example_2.cpp:62: instantiated from here
C:/MinGW/include/boost/regex/v4/regex_split.hpp:96: warning: declaration of
`e'
   shadows a global declaration
regex_split_example_2.cpp:31: warning: shadowed declaration is here
C:/MinGW/include/boost/regex/v4/regex_split.hpp: In function `size_t
   boost::regex_split(OutputIterator, std::basic_string<charT, Traits1,
   Alloc1>&, const boost::reg_expression<charT, Traits2, Alloc2>&,
   boost::regex_constants::_match_flags, unsigned int) [with OutputIterator
=
   std::ostream_iterator<std::string, char, std::char_traits<char> >, charT
=
   char, Traits1 = std::char_traits<char>, Alloc1 = std::allocator<char>,
   Traits2 = boost::regex_traits<char>, Alloc2 = std::allocator<char>]':
regex_split_example_2.cpp:81: instantiated from here
C:/MinGW/include/boost/regex/v4/regex_split.hpp:96: warning: declaration of
`e'
   shadows a global declaration
regex_split_example_2.cpp:31: warning: shadowed declaration is here
C:/MinGW/include/boost/regex/v4/regex_grep.hpp: In function `unsigned int
   boost::regex_grep(Predicate, BidiIterator, BidiIterator, const
   boost::reg_expression<charT, traits, Allocator2>&,
   boost::regex_constants::_match_flags) [with Predicate =
 
boost::re_detail::split_pred<std::back_insert_iterator<std::list<std::string
,
   std::allocator<std::string> > >, char, std::char_traits<char>,
   std::allocator<char>,
   std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
> >
>, BidiIterator = __gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   charT = char, traits = boost::regex_traits<char>, Allocator =
   std::allocator<char>]':
C:/MinGW/include/boost/regex/v4/regex_split.hpp:105: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags, unsigned int) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::st
ring> > >, charT = char, Traits1 = std::char_traits<char>, Alloc1 =
std::allocator<char>, Traits2 = boost::regex_traits<
char>, Alloc2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:131: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::string>
> >, cha
rT = char, Traits1 = std::char_traits<char>, Alloc1 = std::allocator<char>,
Traits2 = boost::regex_traits<char>, Alloc2
= std::allocator<char>]'
regex_split_example_2.cpp:62: instantiated from here
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:39: warning: declaration of
`e'
   shadows a global declaration
regex_split_example_2.cpp:31: warning: shadowed declaration is here
C:/MinGW/include/boost/regex/v4/regex_grep.hpp: In function `unsigned int
   boost::regex_grep(Predicate, BidiIterator, BidiIterator, const
   boost::reg_expression<charT, traits, Allocator2>&,
   boost::regex_constants::_match_flags) [with Predicate =
   boost::re_detail::split_pred<std::ostream_iterator<std::string, char,
   std::char_traits<char> >, char, std::char_traits<char>,
   std::allocator<char>,
   std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
> >
>, BidiIterator = __gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
   charT = char, traits = boost::regex_traits<char>, Allocator =
   std::allocator<char>]':
C:/MinGW/include/boost/regex/v4/regex_split.hpp:105: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags, unsigned int) [with OutputIterator =
std::ostream_iterator<std::string, char, std::char_traits<char> >, char
T = char, Traits1 = std::char_traits<char>, Alloc1 = std::allocator<char>,
Traits2 = boost::regex_traits<char>, Alloc2 =
 std::allocator<char>]'
regex_split_example_2.cpp:81: instantiated from here
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:39: warning: declaration of
`e'
   shadows a global declaration
regex_split_example_2.cpp:31: warning: shadowed declaration is here
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp: In constructor `
   boost::re_detail::perl_matcher<BidiIterator, Allocator, traits,
   Allocator2>::perl_matcher(BidiIterator, BidiIterator,
   boost::match_results<Iterator, Allocator>&, const
   boost::reg_expression<typename traits::char_type, traits, Allocator2>&,
   boost::regex_constants::_match_flags) [with BidiIterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, Allocator =
   std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<const char*,
   std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
>
>, traits = boost::regex_traits<char>, Allocator2 =
std::allocator<char>]':
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:47: instantiated from
`unsigned int boost::regex_grep(Predicate, BidiIt
erator, BidiIterator, const boost::reg_expression<charT, traits,
Allocator2>&, boost::regex_constants::_match_flags) [wi
th Predicate =
boost::re_detail::split_pred<std::back_insert_iterator<std::list<std::string
, std::allocator<std::string>
> >, char, std::char_traits<char>, std::allocator<char>,
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<c
onst char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > > >, BidiIterator = __gnu_cxx::__
normal_iterator<const char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, charT = char, tra
its = boost::regex_traits<char>, Allocator = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:105: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags, unsigned int) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::st
ring> > >, charT = char, Traits1 = std::char_traits<char>, Alloc1 =
std::allocator<char>, Traits2 = boost::regex_traits<
char>, Alloc2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:131: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::string>
> >, cha
rT = char, Traits1 = std::char_traits<char>, Alloc1 = std::allocator<char>,
Traits2 = boost::regex_traits<char>, Alloc2
= std::allocator<char>]'
regex_split_example_2.cpp:62: instantiated from here
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:39: warning:
declaration
   of `e' shadows a global declaration
regex_split_example_2.cpp:31: warning: shadowed declaration is here
C:/MinGW/include/boost/regex/v4/basic_regex.hpp: In static member function `
   static const unsigned char* boost::reg_expression<charT, traits,
   Allocator>::get_map(const boost::reg_expression<charT, traits,
Allocator>&)
   [with charT = char, traits = boost::regex_traits<char>, Allocator =
   std::allocator<char>]':
C:/MinGW/include/boost/regex/v4/perl_matcher.hpp:178: instantiated from
`static const unsigned char* boost::re_detail:
:access_t<charT, traits, Allocator>::get_map(const
boost::reg_expression<charT, traits, Allocator>&) [with charT = char,
 traits = boost::regex_traits<char>, Allocator = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:626: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::find_restart_any() [with
BidiIterator = __gnu_cxx::__normal_iterator<const c
har*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >
>, Allocator = std::allocator<boost::sub_ma
tch<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >
>, traits = boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:159: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::find() [with BidiIterator =
__gnu_cxx::__normal_iterator<const char*, std::b
asic_string<char, std::char_traits<char>, std::allocator<char> > >,
Allocator = std::allocator<boost::sub_match<__gnu_cx
x::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >, traits =
 boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:49: instantiated from
`unsigned int boost::regex_grep(Predicate, BidiIt
erator, BidiIterator, const boost::reg_expression<charT, traits,
Allocator2>&, boost::regex_constants::_match_flags) [wi
th Predicate =
boost::re_detail::split_pred<std::back_insert_iterator<std::list<std::string
, std::allocator<std::string>
> >, char, std::char_traits<char>, std::allocator<char>,
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<c
onst char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > > >, BidiIterator = __gnu_cxx::__
normal_iterator<const char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, charT = char, tra
its = boost::regex_traits<char>, Allocator = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:105: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags, unsigned int) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::st
ring> > >, charT = char, Traits1 = std::char_traits<char>, Alloc1 =
std::allocator<char>, Traits2 = boost::regex_traits<
char>, Alloc2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:131: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::string>
> >, cha
rT = char, Traits1 = std::char_traits<char>, Alloc1 = std::allocator<char>,
Traits2 = boost::regex_traits<char>, Alloc2
= std::allocator<char>]'
regex_split_example_2.cpp:62: instantiated from here
C:/MinGW/include/boost/regex/v4/basic_regex.hpp:291: warning: declaration of
`e
   ' shadows a global declaration
regex_split_example_2.cpp:31: warning: shadowed declaration is here
C:/MinGW/include/boost/regex/v4/basic_regex.hpp: In static member function `
   static const boost::re_detail::re_syntax_base*
boost::reg_expression<charT,
   traits, Allocator>::first(const boost::reg_expression<charT, traits,
   Allocator>&) [with charT = char, traits = boost::regex_traits<char>,
   Allocator = std::allocator<char>]':
C:/MinGW/include/boost/regex/v4/perl_matcher.hpp:176: instantiated from
`static const boost::re_detail::re_syntax_base
* boost::re_detail::access_t<charT, traits, Allocator>::first(const
boost::reg_expression<charT, traits, Allocator>&) [w
ith charT = char, traits = boost::regex_traits<char>, Allocator =
std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:635: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::find_restart_any() [with
BidiIterator = __gnu_cxx::__normal_iterator<const c
har*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >
>, Allocator = std::allocator<boost::sub_ma
tch<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >
>, traits = boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:159: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::find() [with BidiIterator =
__gnu_cxx::__normal_iterator<const char*, std::b
asic_string<char, std::char_traits<char>, std::allocator<char> > >,
Allocator = std::allocator<boost::sub_match<__gnu_cx
x::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >, traits =
 boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:49: instantiated from
`unsigned int boost::regex_grep(Predicate, BidiIt
erator, BidiIterator, const boost::reg_expression<charT, traits,
Allocator2>&, boost::regex_constants::_match_flags) [wi
th Predicate =
boost::re_detail::split_pred<std::back_insert_iterator<std::list<std::string
, std::allocator<std::string>
> >, char, std::char_traits<char>, std::allocator<char>,
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<c
onst char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > > >, BidiIterator = __gnu_cxx::__
normal_iterator<const char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, charT = char, tra
its = boost::regex_traits<char>, Allocator = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:105: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags, unsigned int) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::st
ring> > >, charT = char, Traits1 = std::char_traits<char>, Alloc1 =
std::allocator<char>, Traits2 = boost::regex_traits<
char>, Alloc2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:131: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::string>
> >, cha
rT = char, Traits1 = std::char_traits<char>, Alloc1 = std::allocator<char>,
Traits2 = boost::regex_traits<char>, Alloc2
= std::allocator<char>]'
regex_split_example_2.cpp:62: instantiated from here
C:/MinGW/include/boost/regex/v4/basic_regex.hpp:289: warning: declaration of
`e
   ' shadows a global declaration
regex_split_example_2.cpp:31: warning: shadowed declaration is here
C:/MinGW/include/boost/regex/v4/perl_matcher.hpp: In function `iterator
   boost::re_detail::re_is_set_member(iterator, iterator, const
   boost::re_detail::re_set_long*, const boost::reg_expression<charT,
   traits_type, Allocator>&) [with iterator =
   __gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> > >, charT = char,
traits_type
   = boost::regex_traits<char>, Allocator = std::allocator<char>]':
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:550: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::match_long_set() [with
BidiIterator = __gnu_cxx::__normal_iterator<const cha
r*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >
>, Allocator = std::allocator<boost::sub_matc
h<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >
, traits = boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_non_recursive.hpp:144:
instantiated from `bool boost::re_detail::perl_mat
cher<BidiIterator, Allocator, traits, Allocator2>::match_all_states() [with
BidiIterator = __gnu_cxx::__normal_iterator<
const char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, Allocator = std::allocator<boost:
:sub_match<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char
> > > > >, traits = boost::regex_traits<char>, Allocator2 =
std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:249: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::match_prefix() [with
BidiIterator = __gnu_cxx::__normal_iterator<const char*
, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
Allocator = std::allocator<boost::sub_match<
__gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >,
traits = boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:636: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::find_restart_any() [with
BidiIterator = __gnu_cxx::__normal_iterator<const c
har*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >
>, Allocator = std::allocator<boost::sub_ma
tch<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >
>, traits = boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:159: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::find() [with BidiIterator =
__gnu_cxx::__normal_iterator<const char*, std::b
asic_string<char, std::char_traits<char>, std::allocator<char> > >,
Allocator = std::allocator<boost::sub_match<__gnu_cx
x::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >, traits =
 boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:49: instantiated from
`unsigned int boost::regex_grep(Predicate, BidiIt
erator, BidiIterator, const boost::reg_expression<charT, traits,
Allocator2>&, boost::regex_constants::_match_flags) [wi
th Predicate =
boost::re_detail::split_pred<std::back_insert_iterator<std::list<std::string
, std::allocator<std::string>
> >, char, std::char_traits<char>, std::allocator<char>,
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<c
onst char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > > >, BidiIterator = __gnu_cxx::__
normal_iterator<const char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, charT = char, tra
its = boost::regex_traits<char>, Allocator = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:105: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags, unsigned int) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::st
ring> > >, charT = char, Traits1 = std::char_traits<char>, Alloc1 =
std::allocator<char>, Traits2 = boost::regex_traits<
char>, Alloc2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:131: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::string>
> >, cha
rT = char, Traits1 = std::char_traits<char>, Alloc1 = std::allocator<char>,
Traits2 = boost::regex_traits<char>, Alloc2
= std::allocator<char>]'
regex_split_example_2.cpp:62: instantiated from here
C:/MinGW/include/boost/regex/v4/perl_matcher.hpp:60: warning: declaration of
`e
   ' shadows a global declaration
regex_split_example_2.cpp:31: warning: shadowed declaration is here
C:/MinGW/include/boost/regex/v4/basic_regex.hpp: In static member function `
   static unsigned int boost::reg_expression<charT, traits,
   Allocator>::restart_type(const boost::reg_expression<charT, traits,
   Allocator>&) [with charT = char, traits = boost::regex_traits<char>,
   Allocator = std::allocator<char>]':
C:/MinGW/include/boost/regex/v4/perl_matcher.hpp:174: instantiated from
`static unsigned int boost::re_detail::access_
t<charT, traits, Allocator>::restart_type(const boost::reg_expression<charT,
traits, Allocator>&) [with charT = char, tr
aits = boost::regex_traits<char>, Allocator = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:737: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::find_restart_lit() [with
BidiIterator = __gnu_cxx::__normal_iterator<const c
har*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >
>, Allocator = std::allocator<boost::sub_ma
tch<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >
>, traits = boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:159: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::find() [with BidiIterator =
__gnu_cxx::__normal_iterator<const char*, std::b
asic_string<char, std::char_traits<char>, std::allocator<char> > >,
Allocator = std::allocator<boost::sub_match<__gnu_cx
x::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >, traits =
 boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:49: instantiated from
`unsigned int boost::regex_grep(Predicate, BidiIt
erator, BidiIterator, const boost::reg_expression<charT, traits,
Allocator2>&, boost::regex_constants::_match_flags) [wi
th Predicate =
boost::re_detail::split_pred<std::back_insert_iterator<std::list<std::string
, std::allocator<std::string>
> >, char, std::char_traits<char>, std::allocator<char>,
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<c
onst char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > > >, BidiIterator = __gnu_cxx::__
normal_iterator<const char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, charT = char, tra
its = boost::regex_traits<char>, Allocator = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:105: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags, unsigned int) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::st
ring> > >, charT = char, Traits1 = std::char_traits<char>, Alloc1 =
std::allocator<char>, Traits2 = boost::regex_traits<
char>, Alloc2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:131: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::string>
> >, cha
rT = char, Traits1 = std::char_traits<char>, Alloc1 = std::allocator<char>,
Traits2 = boost::regex_traits<char>, Alloc2
= std::allocator<char>]'
regex_split_example_2.cpp:62: instantiated from here
C:/MinGW/include/boost/regex/v4/basic_regex.hpp:287: warning: declaration of
`e
   ' shadows a global declaration
regex_split_example_2.cpp:31: warning: shadowed declaration is here
C:/MinGW/include/boost/regex/v4/basic_regex.hpp: In static member function `
   static const boost::re_detail::kmp_info<charT>*
boost::reg_expression<charT,
   traits, Allocator>::get_kmp(const boost::reg_expression<charT, traits,
   Allocator>&) [with charT = char, traits = boost::regex_traits<char>,
   Allocator = std::allocator<char>]':
C:/MinGW/include/boost/regex/v4/perl_matcher.hpp:182: instantiated from
`static const boost::re_detail::kmp_info<charT
>* boost::re_detail::access_t<charT, traits, Allocator>::get_kmp(const
boost::reg_expression<charT, traits, Allocator>&)
 [with charT = char, traits = boost::regex_traits<char>, Allocator =
std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:739: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::find_restart_lit() [with
BidiIterator = __gnu_cxx::__normal_iterator<const c
har*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >
>, Allocator = std::allocator<boost::sub_ma
tch<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >
>, traits = boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:159: instantiated
from `bool boost::re_detail::perl_matcher<Bi
diIterator, Allocator, traits, Allocator2>::find() [with BidiIterator =
__gnu_cxx::__normal_iterator<const char*, std::b
asic_string<char, std::char_traits<char>, std::allocator<char> > >,
Allocator = std::allocator<boost::sub_match<__gnu_cx
x::__normal_iterator<const char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >, traits =
 boost::regex_traits<char>, Allocator2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:49: instantiated from
`unsigned int boost::regex_grep(Predicate, BidiIt
erator, BidiIterator, const boost::reg_expression<charT, traits,
Allocator2>&, boost::regex_constants::_match_flags) [wi
th Predicate =
boost::re_detail::split_pred<std::back_insert_iterator<std::list<std::string
, std::allocator<std::string>
> >, char, std::char_traits<char>, std::allocator<char>,
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<c
onst char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > > >, BidiIterator = __gnu_cxx::__
normal_iterator<const char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, charT = char, tra
its = boost::regex_traits<char>, Allocator = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:105: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags, unsigned int) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::st
ring> > >, charT = char, Traits1 = std::char_traits<char>, Alloc1 =
std::allocator<char>, Traits2 = boost::regex_traits<
char>, Alloc2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:131: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::string>
> >, cha
rT = char, Traits1 = std::char_traits<char>, Alloc1 = std::allocator<char>,
Traits2 = boost::regex_traits<char>, Alloc2
= std::allocator<char>]'
regex_split_example_2.cpp:62: instantiated from here
C:/MinGW/include/boost/regex/v4/basic_regex.hpp:295: warning: declaration of
`e
   ' shadows a global declaration
regex_split_example_2.cpp:31: warning: shadowed declaration is here
C:/MinGW/include/boost/throw_exception.hpp: In function `void
   boost::throw_exception(const E&) [with E = std::invalid_argument]':
C:/MinGW/include/boost/regex/v4/perl_matcher_common.hpp:49: instantiated
from `boost::re_detail::perl_matcher<BidiIter
ator, Allocator, traits, Allocator2>::perl_matcher(BidiIterator,
BidiIterator, boost::match_results<Iterator, Allocator>
&, const boost::reg_expression<typename traits::char_type, traits,
Allocator2>&, boost::regex_constants::_match_flags) [
with BidiIterator = __gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::alloc
ator<char> > >, Allocator =
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<
char, std::char_traits<char>, std::allocator<char> > > > >, traits =
boost::regex_traits<char>, Allocator2 = std::alloca
tor<char>]'
C:/MinGW/include/boost/regex/v4/regex_grep.hpp:47: instantiated from
`unsigned int boost::regex_grep(Predicate, BidiIt
erator, BidiIterator, const boost::reg_expression<charT, traits,
Allocator2>&, boost::regex_constants::_match_flags) [wi
th Predicate =
boost::re_detail::split_pred<std::back_insert_iterator<std::list<std::string
, std::allocator<std::string>
> >, char, std::char_traits<char>, std::allocator<char>,
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<c
onst char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > > >, BidiIterator = __gnu_cxx::__
normal_iterator<const char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, charT = char, tra
its = boost::regex_traits<char>, Allocator = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:105: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags, unsigned int) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::st
ring> > >, charT = char, Traits1 = std::char_traits<char>, Alloc1 =
std::allocator<char>, Traits2 = boost::regex_traits<
char>, Alloc2 = std::allocator<char>]'
C:/MinGW/include/boost/regex/v4/regex_split.hpp:131: instantiated from
`size_t boost::regex_split(OutputIterator, std:
:basic_string<charT, Traits1, Alloc1>&, const boost::reg_expression<charT,
Traits2, Alloc2>&, boost::regex_constants::_m
atch_flags) [with OutputIterator =
std::back_insert_iterator<std::list<std::string, std::allocator<std::string>
> >, cha
rT = char, Traits1 = std::char_traits<char>, Alloc1 = std::allocator<char>,
Traits2 = boost::regex_traits<char>, Alloc2
= std::allocator<char>]'
regex_split_example_2.cpp:62: instantiated from here
C:/MinGW/include/boost/throw_exception.hpp:37: warning: declaration of `e'
   shadows a global declaration
regex_split_example_2.cpp:31: warning: shadowed declaration is here

Am I doing something wrong? I compiled each application with:

gpp -Wall -W -Wshadow FILENAME.cpp -o FILENAME.exe -lboost_regex

(gpp is another name for g++ on my system. I use MinGW gcc 3.3.) Since
this built several example applications cleanly (the ones not listed here),
I think something is broken in Boost.

Thanks,
Stephan T. Lavavej
http://nuwen.net


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk