This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]