Another sigh as I convert more C++ to C#... I REALLY like typedefs in C++. When using complicated structures all over the place it's so much easier to use: typedef list<unordered_map<MyNiftyThing, float>> MyConciseThingList; And then: MyConciseThingList theThingList;
Vastauksena käyttäjälle @IADaveMark
Try the using directive. More powerful then typedefs. Lets you use templates. Sometimes I'll use inheritance instead of typedef/using, because a real new derived type won't get expanded when the compiler gives you error messages.
10.49 - 17. huhtik. 2020
0 vastausta
0 uudelleentwiittausta
2 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.