[Bug c++/49894] Uniform initialization in constructor (C++0x)

d.v.a at ngs dot ru gcc-bugzilla@gcc.gnu.org
Fri Jul 29 06:29:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49894

--- Comment #1 from __vic <d.v.a at ngs dot ru> 2011-07-29 06:28:47 UTC ---
class mutex
{
    ::pthread_mutex_t mtx;
public:
    constexpr mutex() : mtx(PTHREAD_MUTEX_INITIALIZER) {}
};

Compiles fine... What is the difference?



More information about the Gcc-bugs mailing list