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

Does that actually compile in C++11? I haven't used C++ in a while, but you used to need whitespace to separate the two closing angle brackets (i.e. ">>" should be "> >").

Personally, I use C for my embedded work and Python for test applications and data processing. C++ is in the middle and I haven't had a use for it.



A few compilers even before C++11 treated >> in template definitions as expected (e.g. VS2010) even though it wasn't standard, then the C++11 standard officially made it required. So I haven't found the >> thing to be a problem for a while now.


Yes, that got changed/fixed with c++11. So you can now use >> there.




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

Search: