There are similar questions here and elsewhere but none that fix this issue.
gcc 4.6.3 on Ubuntu 12.04.5 produces the following warning
extended initializer lists only available with -std=c++0x or -std=gnu++0x [enabled by default]
for the following code
// Mutex.h
class CMutex
{
...
private:
pthread_mutex_t m_plock;
};
// Mutex.cpp
CMutex::CMutex()
{
m_plock = PTHREAD_MUTEX_INITIALIZER;
}
How is this warning best resolved?