Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As I said, 0x lambdas can do that...

... but you probably shouldn't: don't use a macro where a function will suffice, and if you need to use a macro, write a macro that syntactically wraps around a function if possible. C++, especially 0x, provides a lot of metaprogramming functionality you can use to avoid writing macros in many cases. Using this functionality will give the compiler more information about your program for analysis purposes, which means the compiler can help ensure correctness and better efficiency.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: