a bit of rearranging?

Phil Edwards phil@jaj.com
Thu May 16 15:48:00 GMT 2002


On Thu, May 16, 2002 at 10:42:18PM +0000, Nathan Myers wrote:
> On Thu, May 16, 2002 at 10:55:02PM +0200, Gabriel Dos Reis wrote:
> > 
> > I second this scheme.  Actually, I think every inline member functions
> > (perhaps with very few exceptions) should be defined out-of-class.
> 
> I used to agree, but after some more experience my coding standard 
> now dictates that only one-line inlines may appear in class bodies
> (and no cheating by piling up statements on a line!).  

I should mention at this point that I'm also doing a bit of reformatting to
meet the C++STYLE guidelines.  If you'd like to change the rules regarding
inlines, there's the place to start.


> In fact, it makes headers more readable 
> than the more-restrictive alternative, because almost all the
> inlines are self-documenting.  
> 
> I wonder if it wouldn't be a Good Thing to make doxygen slurp up
> and display the one-line inlines.

INLINE_INFO is already on.  Try setting INLINE_SOURCES on and see what it
looks like.

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams



More information about the Libstdc++ mailing list