A good reason for C++ to support multiple return values: returning multiple references instead of pointers for explicit not null situations.
-
-
Vastauksena käyttäjälle @Atrix256
Still possible with a struct of references. Some restrictions, but it will work.
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Before variadic templates, I have a delegate class that just took 1 param, and used this to pass structs of refs into the delegate.
1 vastaus 0 uudelleentwiittausta 0 tykkäystä
I think the compiler basically can't generate any ctors or copy/move operators. You have to explicitly write the ctor.
11.29 - 21. elok. 2017
0 vastausta
0 uudelleentwiittausta
0 tykkäystä
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.