P0187R0: Proposal of Bitfield Default Member Initializers -- Andrew Tomazos

New WG21 papers are available. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.

Document number: P0187R0

Date: 2015-11-20

P0187R0: Proposal of Bitfield Default Member Initializers

by Andrew Tomazos

Abstract:

We propose default member initializers for bitfields. Example:

struct S {
  int x : 6 = 42;
};

To ease parsing we specify a rule, roughly summarized as “you have to use =, and = always starts the initializer”.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.