error: no matching function for call to 'std::vector<int>::erase(__gnu_cxx::__normal_iterator<const int*, std::vector<int> >, std::vector<int>::const_iterator)'
I'd really suggest to use c++11 style <thread> and <condition_variable> to achieve this.
I have two demonstations:
Notifying any worker, one at a time:
This is the simplest to do, because there's little coordination going on:
#include <vector>
#include <thread>
#include <mutex>
#include <alg...
@CatPlusPlus When your machine is provided and set up by a third party tech team, your env variables are a big pile of crap. Touch anything and stuff starts to break in all places
@kbok I don't know if they are the way to do this, but it worked well enough t let everyone have his own boost paths, without messing up the other's project file
I am rather new to coding and want to learn a few different languages including c++, i can't quite get my hands on a C++ book so would a C book do as a temporary replacement till i can get my hands on one? would it help me learn some of what I want to know?
you're right in that it won't work for a lambda, but there's lots of other function objects it also won't work for, and you're also right in that this needlessly sucks.
I'd really suggest to use c++11 style <thread> and <condition_variable> to achieve this.
I have two (and a half) demonstations. They each assume you have 1 master that drives 10 workers. Each worker awaits a signal before it does it's work.
We'll use std::condition_variable (which works in conj...
I have a feeling that (a) either US is on holiday (b) the comment sitting there puts doubt in people's minds. I hate when that happens.
I like the fact that MSVC are looking to finally get their compiler up to the original C++99 spec :P I know it's edge case stuff, still find it amusing slgithly
@A.H. maybe not, but they did announce recently as part of their road map, they will be finally conforming to the c++99 spec, and thus the 03 spec too IIRC
its some trivial detail that just seems to be handy to do at long last, ready for 14 features... I think that was the deal any way
I had a really long post on this and decided it can be summed up much shorter. Canonically speaking, is it better to include a data member inside of a class as opposed to inheriting it? I found I can implement identical functions either way, but don't really know what caveats I should be aware ...
lol - just noticed this^ the first time that showed up on my stackoverflow.com/reputation report. It's a rare side-effect of merging my not-sehe account, then
@R.MartinhoFernandes Out of curiosity: how did you forget? Does it work like this: you just go home, your head fills with things you want to/have to do and you forget about time?
That's what I do. I end up "postponing" things because I just don't think about it. Having a drink. Calling a friend. It's usually when I go home/go to bed that I realize what I've been forgetting
Like, I should be booking a hotel reservation for Meeting C++ 2013
I doubt you're as sloppy as I'm with social dates. I don't make them, never commit and am prone to forget anyway. When I don't, I might be mentally absent.
do you support aggregation because of the statements made here? Well crap, I cannot find the link anywhere now. It said: Extraneous memory allocation in variables due to inheriting useless data members for its particular behavior and performance issues to a mile high stack of virtual functions
@Rapptz I see your point, but I can't explain mine. Anyway I've seen some interviews and he doesn't really sound like a douche at all. He seems pretty nervous instead. Which means that he cares about what people think and how they judge him.
Maybe they expect you to think there is additional services during the day, even though there is not, so that they can bill higher rates for several nights compared to the single night rate multiplied by the number of days stayed
The Dunning–Kruger effect is a cognitive bias in which unskilled individuals suffer from illusory superiority, mistakenly rating their ability much higher than average. This bias is attributed to a metacognitive inability of the unskilled to recognize their mistakes.
Actual competence may weaken self-confidence, as competent individuals may falsely assume that others have an equivalent understanding. David Dunning and Justin Kruger of Cornell University conclude, "the miscalibration of the incompetent stems from an error about the self, whereas the miscalibration of the highly competent...
yeah someone asked me to make them a website with a WebGL effect they saw on some other website and they said "that would probably take like, a day or two, right?"
> Dunning and Kruger were awarded the 2000 satirical Ig Nobel Prize in Psychology for their paper, "Unskilled and Unaware of It: How Difficulties in Recognizing One's Own Incompetence Lead to Inflated Self-Assessments"
@Insilico I said it would probably take at least two weeks to make something like that and they immediately said "WELL look at all these things other people made! Obviously it can't be hard!"
@Pawnguy7 because he was annoying as fuck and then went on to say math was stupid; ignored us when we tried to help; and that for loops don't need math and we don't know what we're talking about and a bunch of other things. so it was a nice gtfo. it used to be starred on the right i forgot who but it was "then go do it and stop wasting our fucking time" i think
I feel like the average non-computer person has never seen programming before, therefore assumes since so much stuff made by programming exists, it must be easy
Mainly because I was trying to give you a frame-rate independent solution but it turns out it's way easier to just make sure the physics part gets a constant time step.
@Pawnguy7 Yeah I did some more research on how physics is typically implemented in things like games and animation and basically they make it so that the change in time between two frames is constant
@Jeffrey I assume the bug is still there, but I don't know because it doesn't run. I was trying to clean up the engine - and the generation a bit as well - but I haven't really redesigned the Drawer, just split it up a bit, and... well, things don't run anymore, so neither, yet.