This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49894] Uniform initialization in constructor (C++0x)
- From: "d.v.a at ngs dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Jul 2011 06:28:49 +0000
- Subject: [Bug c++/49894] Uniform initialization in constructor (C++0x)
- Auto-submitted: auto-generated
- References: <bug-49894-4@http.gcc.gnu.org/bugzilla/>
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?