Menu

#12 unqualified calls to push_back and dependent name lookup

open
nobody
None
5
2003-08-29
2003-08-29
Anonymous
No

The three calls to vector's push_back from
lib/xparam/xp_hvl.h
and the two in
lib/xparam/xp_typed_value_map.h
are not found when a compiler is using dependent name
lookup.

An easy way to fix these is to qualify the calls with
`this->':

- push_back( MapItem(key_handle,val_handle) );
+ this->push_back(
MapItem(key_handle,val_handle) );

(and the same for the other four).

See http://gcc.gnu.org/onlinedocs/gcc/Name-lookup.html for
more information about dependent name lookup.

Discussion


Log in to post a comment.