C++ folks, is this a reasonable expectation? If I use your library, I can create a main.cpp that includes any public-facing header from your library, and it will compile (maybe not link), without having to include extra headers in a specific order.
-
-
Yeah, the API declaration part of header-only libs should never include system headers, only the implementation part (assuming it's STB-style). Or if a classical .h/.cpp pair: the .h file should only contain API declarations, but no (system-header-dependent) code.
Kiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
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.