DEV Community

Discussion on: Lambda Expressions in C++

Collapse
 
lucasso profile image
Łukasz

comment in the following example is wrong

[this](int value) {
  return 0 < value && value < this->m_upperBound; // doesn't compile, m_upperBound is not a non-static local
}

i guess it compiles

Collapse
 
sandordargo profile image
Sandor Dargo

You are right, I forgot to remove the comment there. Thanks a lot for spotting it!