« first day (4311 days earlier)   

00:22
REFRESH! There are 5055 unanswered questions (93.4800 answered)
 
7 hours later…
07:34
0
Q: Insert n elements into front of std::vector with side effects

友人AGiven void foo(std::vector<std::string>& vec, size_t target, std::mt19937& rng) { std::uniform_int_distribution dist; while(vec.size() < target) { auto x = std::to_string(dist(rng)); std::cout << x << '\n'; vec.insert(vec.begin(), x); } } I want to rewrite...

 
3 hours later…
10:43
@FPGAguru2015: I'm glad you were able to get your code working. If if you are interested in getting feedback on the working version of your code, including the testbench, consider posting on Code Review. I have more advice to offer, which is outside the scope of Stack Overflow. — toolic 50 secs ago
 
6 hours later…
16:22
Monking
Monking
17:17
@RMunroe What happened to EEEK!
17:34
Monking

« first day (4311 days earlier)