SlickEdit 2013 (v18.0.1.2 32-bit)
1)
typedef std::map<uint32_t, std::set<std::string>> Event2SourceIds_t;
typedef std::map<uint32_t, std::set<std::string>>::iterator Event2SourceIdsIt_t;
int main() {
    Event2SourceIds_t map;
    Event2SourceIdsIt_t mapIt;
    for(mapIt = map.begin(); mapIt != map.end(); ++mapIt) {
        // no code completion after "second."
        // insert is highlighted as undefined symbol
        mapIt->second.insert("test");
    }
}
2)
// myNode is highlighted as undefined symbol
BOOST_FOREACH(boost::property_tree::ptree::value_type const &myNode, events.get_child("MyNodes")) {
...}