Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Opinions on inc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 14 Topic 44182 of 48044
Post > Topic >>

Opinions on include order and coding standards

by Adrian <bitbucket@[EMAIL PROTECTED] > Mar 28, 2008 at 11:40 AM

Hi All,

Just wondering if people have any opinions on how include's should be
ordered.  Personally I use style A. Are there any practical reason for
either style. I assume both would have about the same compile time, so
no savings there.

Style A
#include <c++, system headers>
#include <library headers>
#include "local headers"

Style B
#include "local headers"
#include <library headers>
#include <c++, system headers>

Also what should be the goals of, or included in, a c++ coding
standard. I think they should be, (not in any order)
1. Standard and ****table behavior
2. Readability of code
3. Best practices

As you may have guessed we are changing our internal coding standards.


Adrian
 




 14 Posts in Topic:
Opinions on include order and coding standards
Adrian <bitbucket@[EMA  2008-03-28 11:40:04 
Re: Opinions on include order and coding standards
"Niels Dekker - no r  2008-03-28 20:20:05 
Re: Opinions on include order and coding standards
ytrembla@[EMAIL PROTECTED  2008-03-31 12:56:05 
Re: Opinions on include order and coding standards
Martin York <Martin.Yo  2008-03-28 12:49:53 
Re: Opinions on include order and coding standards
"Victor Bazarov"  2008-03-28 16:08:19 
Re: Opinions on include order and coding standards
Krice <paulkp@[EMAIL P  2008-03-28 15:09:52 
Re: Opinions on include order and coding standards
James Kanze <james.kan  2008-03-28 15:16:33 
Re: Opinions on include order and coding standards
Krice <paulkp@[EMAIL P  2008-03-29 00:46:09 
Re: Opinions on include order and coding standards
"Bo Persson" &l  2008-03-29 10:48:58 
Re: Opinions on include order and coding standards
James Kanze <james.kan  2008-03-29 04:38:46 
Re: Opinions on include order and coding standards
Sherman Pendley <spamt  2008-03-29 13:46:57 
Re: Opinions on include order and coding standards
Martin York <Martin.Yo  2008-03-29 10:27:53 
Re: Opinions on include order and coding standards
Krice <paulkp@[EMAIL P  2008-03-29 10:47:40 
Re: Opinions on include order and coding standards
James Kanze <james.kan  2008-03-30 03:02:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 22:41:04 CDT 2008.