Fix strange compiler errors with gcc 2.96:

using <namespace::function>; seems not to work but
using namespace <namespace>; works
Also 'add' only works with explicit namespace. Why?
This commit is contained in:
2018-09-21 14:25:19 +02:00
parent 1aefc5f2f0
commit 1199fabe90

View File

@@ -8,6 +8,8 @@
#include "epicsUnitTest.h"
#include "testMain.h"
using namespace epics::atomic;
namespace {
template < class T >
@@ -52,7 +54,7 @@ static void add ( void *arg )
using epics::atomic::increment;
TestDataAddSub < T > * const pTestData =
reinterpret_cast < TestDataAddSub < T > * > ( arg );
add ( pTestData->m_testValue, TestDataAddSub < T > :: delta );
epics::atomic::add ( pTestData->m_testValue, TestDataAddSub < T > :: delta );
increment ( pTestData->m_testIterations );
}