Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. [vladd@Kenga] [15:11:01] [~]
  2. {0,401}$> cat test_lambda_conversion.cpp
  3. void f(void g(void))
  4. {
  5. g();
  6. }
  7.  
  8. int main()
  9. {
  10. f([] { ; });
  11. return 0;
  12. }
  13.  
  14. [vladd@Kenga] [15:11:17] [~]
  15. {0,402}$> g++ -std=c++98 test_lambda_conversion.cpp -o test_lambda_conversion
  16. test_lambda_conversion.cpp: In function 'int main()':
  17. test_lambda_conversion.cpp:8:14: warning: lambda expressions only available with -std=c++11 or -std=gnu++11 [enabled by default]
  18.  
  19. [vladd@Kenga] [15:11:25] [~]
  20. {0,403}$> g++ -std=c++11 test_lambda_conversion.cpp -o test_lambda_conversion
  21.  
  22. [vladd@Kenga] [15:11:34] [~]
  23. {0,404}$>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement