diff --git a/modules/libcom/test/epicsAtomicTest.cpp b/modules/libcom/test/epicsAtomicTest.cpp index fd9fc2e6b..d9a6c57d2 100644 --- a/modules/libcom/test/epicsAtomicTest.cpp +++ b/modules/libcom/test/epicsAtomicTest.cpp @@ -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 ); }