Talk:C++ Standard Library/Archive 1
![]() | This is an archive of past discussions about C++ Standard Library. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 |
TR1
This article should talk about the next generation of the C++ standard library - i.e. TR1. Anyone up for it? Pcb21 Pete 22:31, 10 December 2005 (UTC)
- I'm going to have a go at it in the near future if no-one else steps forward. I also think this whole page needs a ground-up rewrite, just listing headers isn't helping anyone. Mrjeff 11:05, 27 February 2006 (UTC)
Wrong name?
Would not most of what is mentioned here be classed as a part of the STL? While the STL is a part of the standard, it is still called the C++ Standard Template Library OwenS | T | C | 15:38, 18 June 2006 (UTC)
- From the article: The algorithms and containers in the C++ Standard library are based on the STL and therefore the two terms are often used interchangeably. --ozzmosis 15:57, 18 June 2006 (UTC)
- It should be noted that although the terms are used interchangeably, "STL" in this context is still just a shorthand convention, based on the history of the ideas in the library. To suggest that the name "C++ Standard Library" is wrong and that "STL" is right, is strictly backwards. 195.166.158.227 (talk) 19:54, 19 February 2011 (UTC)
- Absolutely not, OwenS. Strictly speaking "the STL" is *not* a part of the standard at all. The common usage "STL" to refer to the C++ Standard Library (or parts thereof) is erroneous. It's accepted in the colloquial but, as the previous commenter says, if *anything* is the wrong name then it is "the STL". The "Standard" in "C++ Standard Template Library" is **not** related to the actual ISO C++ Standard... which came later. Tomalak Geret'kal (talk) 22:30, 4 July 2011 (UTC)
Deprecated libraries
It might be mentioned that some libraries have fallen out of standard use, especially the C ones when writing C++. I know the g++ compiler waves the warning flags if it sees an old C library in there, especially for something like stdio.h, but it's allowed. I'm a novice programmer, though, so I may very well have my facts wrong. 129.61.46.16 12:29, 23 June 2006 (UTC)
- I can't reproduce this using g++ myself, could you provide an example? What is deprecated is pre-standard library C++ header files, but I don't think any C ones are. Mrjeff 18:52, 23 June 2006 (UTC)
- That's my mistake, then. I must have been thinking of the warnings that g++ produces when you try to put a .h at the end of some of the headers. If you put a .h at the end of iostream, the "hello world" program will work after a compiler warning, but if you remove the .h, you have to mention that you're using the standard namespace or g++ won't recognize cout and endl. The strange behavior of c++ compilers (or maybe the specific g++ release I'm using) belongs elsewhere, though. Just a note, I'm posting this from a different computer, so expect a different IP... yeah, I know, I should get a Wikipedia account. Until then, you'll just have to trust my word that I'm the same person. 68.228.27.186 00:19, 30 June 2006 (UTC)
- Using <stdlib.h> is deprecated; use <cstdlib>. Including <stdlib.h> effectively does the same thing as #include <cstdlib> and using namespace std; together. In many cases, especially in header files, this is a very bad idea! Figs 21:26, 4 March 2007 (UTC)
Headers
I don't think separate articles for each of the standard headers is appropriate content for Wikipedia. Wikipedia is not a C++ reference manual (and I'm saying that as a full-time C++ programmer in my day job). This issue has come up here and here. I will start merging content from some of these pages to the expanded section in this article. Jfire (talk) 03:15, 14 January 2008 (UTC)