c++ - What is this so called lookup in namespace function definition? -


§3.4.1/9 in c++11 standard says:

name lookup name used in definition of friend function (11.3) defined inline in class granting friendship shall proceed described lookup in member function definitions. if friend function not defined in class granting friendship, name lookup in friend function definition shall proceed described lookup in namespace member function definitions.

my interpretation of paragraph friend functions defined in class granting friendship follow rules in previous paragraph (3.4.1/8). next case, i.e., friend function not defined in class granting friendship? this, called lookup in namespace function definition? paragraph 6? i'm not sure.

yes, refers 3.4.1§6. quoting leading sentence of paragraph:

a name used in definition of function following function's declarator-id member of namespace n ...

(emphasis mine)


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -