wichtounet/articles — pull request #4 by xangregg (2014-04-06 18:49:44+00:00)
Title: Fixing a couple compiler complaints and one substantive issue

The compiler complaints may be an issue of using Xcode 5.1 but look generally safe.

The substantive issue is that ```FilledRandom``` and others should use ```reserve()``` instead of ```resize()``` before inserting elements. Otherwise ```resize(size)``` inserts ```size``` 0s into the vector before the actual data.

```c++
v.reserve(size); // was resize(size)
for(std::size_t i = 0; i < size; ++i){
v.push_back({i});
}
```