Thread: boost

  1. #1
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246

    Question boost

    I heared that some Boost libraries are going to be standard in the next C++ standard. Which of them? Will they replace <iostream> and/or <fstream> for example?
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    No, no replacing will be done. Many of the smart pointers will be added (like shared_ptr), the regex library, a bunch of template metaprogramming things, and some of the container stuff like array and tuple. Hash maps will be added, but not specifically the ones from boost (although I think boost has an implementation).

    Snoop around in this site for answers to which libraries will be added to the standard. You can also search through comp.lang.c++.moderated or comp.std.c++.

    http://www.open-std.org/JTC1/SC22/WG21/

  3. #3
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    No replacement. OK. What about deprecation?
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    I would assume there could be some deprecation, but I doubt there will be very much. Perhaps vector<bool> or some other "mistakes". I highly doubt anything widely used will be deprecated.

    I noticed this thread in the comp.std.c++ newsgroup:

    http://groups.google.com/group/comp....05b0dd8be4d10e

    You might want to watch that thread and follow the existing links to find out the information. I don't actually pay attention to those details very often.

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >What about deprecation?
    The committee produces documents for every meeting that covers every topic discussed. Those documents are available to the public and can be found at the link provided to you already.
    My best code is written with the delete key.

  6. #6
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    I am currently in the link but it is like a jungle. It is early to ask such questions I think.
    Thank you Daved so much.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Here's a link to the Library Working Group Technical Report 1 (PDF), which details proposed extensions to the standard library. I think that every single library except some advanced math stuff is also available in Boost.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    I think that is an old version. This might be more recent:

    http://www.open-std.org/JTC1/SC22/WG...2005/n1836.pdf

  9. #9
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Ah, sorry. I just Googled for it.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  10. #10
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    I have a nxxxx in my home PC, I should go and check its number.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  11. #11
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    What are the chances that Spirit will be added? That was always one of my favorite packages in boost...
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  12. #12
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    I'm so happy regex is going to be in there... I just wish threads would be to
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  13. #13
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Agreed. Although I do have a thing for boost.thread and smart pointer.

    I don't think Spirit or Wave will be added. I don't think that is even the objective of their developers. From what I can see, all the libraries being considered for addition are those which provide functionality that is somehow considered to be missing from the standard library (smart pointers, multi-threading, maths,...).

    Spirit and Wave (or just Spirit since that's the focus here), can be considered more as an extension to the language than something that could be an actual part of the language. More importantly, I'm not sure if Spirit is generic enough to be a good candidate for the standard library.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  14. #14
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Location
    Chch, NZ
    Posts
    597
    boost.asio is also likely to be added as the C++ networking library, as is boost.filesystem.

    as for language changes, expect the auto keyword
    e.g.
    Code:
     auto x = somePossiblyComplicatedFuncMaybeWithTemplates(); // x is now of whatever type the function returns
    and built in concept checking
    "I saw a sign that said 'Drink Canada Dry', so I started"
    -- Brendan Behan

    Free Compiler: Visual C++ 2005 Express
    If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?

  15. #15
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    Yes I have
    n1135
    n1836
    n1680
    I didn't know what exactly these papers were when I was downloading them.
    Last edited by siavoshkc; 08-30-2006 at 11:01 PM.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Boost Read/Write Mutexes
    By Zafrir Patt in forum C++ Programming
    Replies: 1
    Last Post: 06-11-2009, 09:32 AM
  2. Boost Auto-Linking
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 12-30-2007, 06:11 AM
  3. Replies: 2
    Last Post: 12-12-2007, 06:45 AM
  4. building boost iostreams
    By l2u in forum C++ Programming
    Replies: 3
    Last Post: 04-14-2007, 02:29 PM
  5. Integrating Boost with STLPort
    By Mario F. in forum Tech Board
    Replies: 1
    Last Post: 11-11-2006, 06:49 AM