@NGen
I'm running off a SSD also, so yeah i suppose it's hard to see disk related performance problems, lol.
@Disch
Yeah, it is available for Windows 7.
@naraku9333
Initializer lists still aren't entirely supported in VS2012.
In early november Microsoft announced the Visual C++ Compiler November 2012 CTP, which supports a a lot more C++11 features (including initializer lists, supposedly.)
http://www.microsoft.com/en-us/download/details.aspx?id=35515
Download and install that. I haven't finished my VS2012 install yet, i'm just doing research. So if it works for you i'd like to hear.
EDIT: Further research shows that said compiler does not yet come with an updated version of the standard library to use the vector initializer_list constructor. :(
EDIT2: Because the november compiler has initializer list support, just not the updated STL, you can create a wrapper for whichever container you'd like to support an initializer list constructor. (Sort of seems like overkill, but it's all part of the fun.)
1 2 3 4 5 6 7 8 9 10 11 12
|
#include <initializer_list>
#include <vector>
template<class T>
class CVector : public std::vector<T>
{
public:
CVector(std::initializer_list<T> list) {
for(auto &i: list)
this->push_back(i);
}
};
|
That might not be the perfect, exception safe way to do it, but i'm able to compile:
CVector<int> v{25, 30, 50};