ned14 / status-code

Proposed SG14 status_code for the C++ standard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why payload_info_t have a constructor?

YexuanXiao opened this issue · comments

The constructor that makes it no longer an aggregate class, seems unnecessary. Is there a reason?

It's a C++ 11 codebase, and until C++ 20 we don't have named member initialisers taken from C. So it seemed safer to stick with an ordered constructor.