fork download
  1. #include <iostream>
  2.  
  3. struct X{
  4. void f(){
  5. //[]{ std::cout << __PRETTY_FUNCTION__ << "\n"; }();
  6. [&,func=__func__]() { std::cout << func; };
  7. }
  8. };
  9.  
  10. int main(){
  11. X().f();
  12. }
  13.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
Standard output is empty