samedi 23 février 2019

const ref binding to internal resource of rvalue

Consider the code:

const Resource& r = ResourceContainer("foo").myResource;

What does the standard say about the lifetime of myResource?

Aucun commentaire:

Enregistrer un commentaire