Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [vladd@Kenga] [15:11:01] [~]
- {0,401}$> cat test_lambda_conversion.cpp
- void f(void g(void))
- {
- g();
- }
- int main()
- {
- f([] { ; });
- return 0;
- }
- [vladd@Kenga] [15:11:17] [~]
- {0,402}$> g++ -std=c++98 test_lambda_conversion.cpp -o test_lambda_conversion
- test_lambda_conversion.cpp: In function 'int main()':
- test_lambda_conversion.cpp:8:14: warning: lambda expressions only available with -std=c++11 or -std=gnu++11 [enabled by default]
- [vladd@Kenga] [15:11:25] [~]
- {0,403}$> g++ -std=c++11 test_lambda_conversion.cpp -o test_lambda_conversion
- [vladd@Kenga] [15:11:34] [~]
- {0,404}$>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement