Jump to content

Recent Entries

Recent Comments

View more

Not dead...

4: Adsense

C++0x as per VS2010

So, I've come to a conclusion about C++0x; I do love the lambda stuff [grin]


float multiplier[] = { -1, 1};
int i = 0;
int j = 0;
std::for_each(dataPoints.begin(), dataPoints.end(), [&](PointAffinity dataPoint)
{
pData.m_driveValue = bands[dataPoint.side][j] * multiplier[sourceSelect] * 7.0f;
pData.position =...