851 links
  • Links Lounge
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
2 results tagged BestPractice x
  • GotW #7a Solution: Minimizing Compile-Time Dependencies, Part 1 | Sutter’s Mill
    • Never #include unnecessary header files.
    • Never #include a header when a forward declaration will suffice.
      Prefer to #include when a forward declaration of a stream will suffice.
      A dependency is only mention as a return type: doesn't require a definition, but it is better to add it for the caller convenience (he will be able to use auto val = x.h();)
      ** A dependency is only mention as a parameter type, or bother a parameter type and a return type: doesn't require a definition

    Ces deux derniers point ne sont pas vrais en Qt si c'est dans la définition d'un signal ou d'un slot. Qmake génère un moc_.cpp à partir du .h, et il a besoin des définitions des paramètres.

    Mon 08 Sep 2014 10:51:30 AM CEST - permalink -
    - - - http://herbsutter.com/2013/08/19/gotw-7a-solution-minimizing-compile-time-dependencies-part-1/
    BestPractice C++ Guidelines
  • Charte CSS
    Mon 09 Jul 2012 10:50:13 AM CEST - permalink -
    - - - http://css.thenew.fr/
    BestPractice CSS
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, no-database delicious clone by the Shaarli community - Help/documentation