Fix an error with -D_GLIBCXX_DEBUG -D_GLIBCPP_CONCEPT_CHECKS

The following (commented) line triggered the error:
    direct_func[rit->second] = rit;
The new following line fixes the bug. Actually, it is even more
efficient.
    direct_func.insert(std::make_pair(rit->second, rit));
This commit is contained in:
Laurent Rineau 2007-02-23 13:01:04 +00:00
parent 5e08db9c45
commit eb080638fc
1 changed files with 6 additions and 1 deletions

View File

@ -113,7 +113,12 @@ public :
rit != reverse_func.end();
++rit)
{
direct_func[rit->second] = rit;
// Fix an error with -D_GLIBCXX_DEBUG -D_GLIBCPP_CONCEPT_CHECKS
// The following (commented) line triggered the error:
// direct_func[rit->second] = rit;
// The new following line fixes the bug. Actually, it is even more
// efficient.
direct_func.insert(std::make_pair(rit->second, rit));
}
}