push_back vs emplace_back

In addition to what visitor said : The function void emplace_back(Type&& _Val) provided by MSCV10 is non conforming and redundant, because as you noted it is strictly equivalent to push_back(Type&& _Val). But the real C++0x form of emplace_back is really useful: void emplace_back(Args&&…); Instead of taking a value_type it takes a variadic list of arguments, so that means that you can now perfectly … Read more

What is “stdafx.h” used for in Visual Studio?

All C++ compilers have one serious performance problem to deal with. Compiling C++ code is a long, slow process. Compiling headers included on top of C++ files is a very long, slow process. Compiling the huge header structures that form part of Windows API and other large API libraries is a very, very long, slow process. To have to do … Read more

Chrome returns “Bad Request – Request Too Long” when navigating to local IIS Express

I get this all the time ONLY in Chrome and I have to clear browsing data to fix it. Wrench > Tools > Clear Browsing Data Check the following: Clear browsing history Clear download history Empty the cache Delete cookies and other site data Then click “Clear Browsing Data” button and refresh your page. UPDATE:I … Read more