c++ - Why should we use "::" operator on global functions / objects? -
i have seen used in various places. c++ programmers use :: operator right before global function call.
e.g
::glgenbuffers( 1, &id ); why this? why not use:
glgenbuffers( 1, &id );
to avoid accidental namespace clashing. example if current namespace have glgenbuffers different "good" glgenbuffers :: can specify call glgenbuffers in global namespace.
Comments
Post a Comment