From b00d733ef07b0849bc5dc146b1bff6d2d03ef59c Mon Sep 17 00:00:00 2001 From: elvez Date: Thu, 2 Feb 2006 00:39:14 +0000 Subject: [PATCH] - Updated coding style with a point on static non-POD objects. git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@283 3ecf2c5c-341e-0410-92b4-d18e462d057c --- doc/sgpem2dman.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/sgpem2dman.texi b/doc/sgpem2dman.texi index 701de72..90d0a4a 100644 --- a/doc/sgpem2dman.texi +++ b/doc/sgpem2dman.texi @@ -97,6 +97,10 @@ Free Documentation License''. @table @strong +@item 2006, February 2nd, @r{--- Luca Vezzaro} +Updated coding style with a point on static non-POD +objects. + @item 2006, January 27th, @r{--- Matteo Settenvini, Djina Verbanac} Add section about conventions to be followed when documenting anomalies. @@ -1007,6 +1011,13 @@ lifes with two styles of comments, the C++ comment (//) is more than enough, and typing isn't a problem since most editors support batch-commenting for multiple lines of code. +@item +Never use global static variables of non-POD (Plain Old Data) +type. +The reason why not doing this is fundamental, and it is well +described, along with a possible alternative here: +@url{http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.12}. + @end enumerate