I am new to c++ and I am trying to create a lock free queue in c++98 using the boost library (version 1.53). When I compile my code in c++98 I get the following error:
error: ‘q’ was not declared in this scope
boost::lockfree::queue<T *, boost::lockfree::capacity<SIZE>> q;
When I remove the capacity option (boost::lockfree::capacity) the error appears to disappear. What am I missing here and doing wrong?
The line that causes the error exists by itself within the constructor and is as follows:
boost::lockfree::queue<T *, boost::lockfree::capacity<SIZE>> q;