vendredi 3 novembre 2017

Does attribute specifier sequence inherit?

Look at this snippet:

struct [[nodiscard]] Result {
};


struct DiscardableResult: Result {
};

Does DiscardableResult have the [[nodiscard]] attribute? If yes, is it possible to remove it somehow?

Aucun commentaire:

Enregistrer un commentaire