|
From: Alberto Ganesh Barbati on 29 Mar 2008 06:43 Vitaly Perlin ha scritto: > On Mar 27, 4:39 pm, Alex Shulgin <alex.shul...(a)gmail.com> wrote: > >> At least, you might want to get rid of `_PairType': such names are >> reserved for language and standard library use at any level. The rest >> of the code looks OK, though. > > I agree that value_type is provided for this particular case, but > what's wrong in usage of _PairType as template parameter name? I am > prepending all my input parameters with underscores since probably > 1998, and haven't had any problems or name clashes so far. > ยง17.4.3.1.2: "Each name that contains a double underscore (__) or begins with an underscore followed by an uppercase letter (2.11) is reserved to the implementation for any use." "Each name that begins with an underscore is reserved to the implementation for use as a name in the global namespace." HTH, Ganesh -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]
|
Pages: 1 Prev: containing an object Next: I got a strange error message when using fstream! |