2011/10/30 Jonathan Wakely <jwakely.gcc@gmail.com>:
> And this works with that code:
>
> struct mutex {
> pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
> mutex() = default;
> };
The error occurs, if you declare a variable of mutex, like
mutex m2;
But if you change that to
mutex m2{};
it works ;-)
- Daniel