Fix concept check regression, and suppress various VC-related warnings.

[SVN r32014]
This commit is contained in:
John Maddock
2005-12-13 18:30:53 +00:00
parent 9d0e60bd74
commit afc5ce05cd
4 changed files with 11 additions and 5 deletions

View File

@ -572,7 +572,7 @@ re_syntax_base* basic_regex_creator<charT, traits>::append_set(
// Oops error:
return 0;
}
BOOST_ASSERT(c3[1] == 0);
BOOST_ASSERT(c3[1] == charT(0));
for(unsigned i = 0; i < (1u << CHAR_BIT); ++i)
{
c3[0] = static_cast<charT>(i);

View File

@ -88,7 +88,7 @@ public:
return m_subs[sub].length();
return 0;
}
difference_type position(unsigned int sub = 0) const
difference_type position(size_type sub = 0) const
{
sub += 2;
if(sub < m_subs.size())

View File

@ -45,7 +45,7 @@ OutputIterator regex_replace(OutputIterator out,
}
else
{
BidirectionalIterator last_m = first;
BidirectionalIterator last_m(first);
while(i != j)
{
if(!(flags & regex_constants::format_no_copy))