auto keyword redefined in VC10

auto keyword is one of those keywords that’s never used. So what the c++ committee has done is, they’ve started using it for a better purpose. For better understanding see this simple demo… First without using auto keyword… [sourcecode language=”cpp”] void AutoTest() { typedef std::vector IntVector; IntVector Ints; std::generate_n(std::back_inserter( Ints ), 100, rand); // After […]
Continue reading…