This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Thanks, - Bob
Hi Bob,Paolo,I have some comments for a new iteration, which, I think will bring us
Attached is the diff containing the alternative pointer support for vector, along with all necessary infrastructure and test cases. All of this is working.
much closer to actually committing the ext/ bits and the testcases:
1- The correct namespace is __gnu_cxx, not __gcc_cxx.
2- Watch formatting, alignments, stylistic issues: for example pointer.h
uses the wrong tabs (*all* tabs, elsewhere too, must be only 2 spaces),
I also see spaces between open ( and the text and then between the text
and the closed ), I see open { alone in a line and the text the next
line, I see _T (ando also plain T) and _S, and _U, which are dangerous
(always use 2-3 chars at least for the name), I see space between the
template keyword and <, the name in cast.h are not uglified at all
(__const_pointer_cast, not const_pointer_cast, etc); names of functions
and the next open { must be aligned to the same column; instead, the
name of a template function must be a tab (2 spaces) to the right of the
template keyword before, likewise between template and class for a
template class; really, lots of issues, please take some time to fix
them, by comparing your code to anything already existing in
include/bits/ or include/std or include/tr1...
3- placement new wants ::new.
4- I don't like the name _NonStd_allocator, doesn't hint at all to the
relevant "extended pointer" feature. _ExtPtr_allocator is already better
(by the way, getUnderlyingImp is not uglified). But I'm certainly open
to different suggestions. Then, however, remember to fix all the related
names, in testcase dirs, etc.
5- Some of your new files lack the FSF header, or have wrong Copyright
dates (only 2008 of course, for new files), or mention the wrong
contributors.
Paolo.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |