I get this error when doing using a static atomic counter.
In the the class .h file:
static tbb::atomic counter;
In the the class .cpp file:
tbb::atomic MyClass::counter = 0;
So, when compiling g++ yields this : error: conversion from int to non-scalar type tbb::atomic requested.
I don't get it. Aren't static attributes initialized this way? So why the int to tbb::atomic conversion?