Say I have a class and named Lambda in a namespace.
Namesh place bla {class X {/ * ... *}; Fixed auto lambda = [] (x param) {/ * ... *}; } This lambda is equal to a function which has been declared inline.
Namespace blub {void f} But can I call that lambda from other unrelated namespace, without using the name bla ADL ( Logic Dependent Lookup, which is called KoNIG Lookup)? () {Bla :: X x; Lambda (x); // Does it compile? }}
is not a lambda function, but an object that can be called a The ceremony As such, it does not receive function-treatment and its call is not subject to ADL.
No comments:
Post a Comment