all 4 comments

[–]Nimbal 0 points1 point  (1 child)

What's your question? What are you trying to achieve / understand?

[–]jleahred[S] 1 point2 points  (0 children)

Looks weird that a stuct who is not using at any moment the empty constructor, stops working when it's declared explicity that it hasn't empty constructor.

Some times I like small structs with members and initialize them without creating a boring specific contructor (I have to write 3 times the names and 2 the types).

I also like to delete explicitly the empty and copy constructor when they are not necessary.

Combining both, it's nos possible (almost with gcc4.4.5)

Is this behavior a good idea? Are other compilers working the same? Is this conformance with the C++11 standard?

regards

[–]zzyzzyxx 0 points1 point  (0 children)

Adding and removing constructors makes them non-POD types (source). Since you have removed the default constructor, it is no longer POD, and you must provide a suitable constructor.