Do you use Boost?

This is a discussion on Do you use Boost? within the C++ Programming forums, part of the General Programming Boards category; Yes, I've been coding for almost 3 years now in school and I didn't use Boost on all of my ...

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    64

    Do you use Boost?

    Yes, I've been coding for almost 3 years now in school and I didn't use Boost on all of my projects.

    Now, I'm building a 3D game engine and I want to know what's the benefits of using boost. I heard many good thing about this set of libraries.

    Most of the time I hear about those smart and shared pointers which I really don't know how to use. I saw on their feature list that they also support threads which I think is great.

    Can anyone here tell me how Boost help your projects? What's so great about it?

    Thank you
    Sarah

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,457
    Quote Originally Posted by sarah22
    Do you use Boost?
    Yes.

    Quote Originally Posted by sarah22
    Can anyone here tell me how Boost help your projects? What's so great about it?
    I have used dynamic_bitset when I needed one. Stuff like pointer containers, lexical_cast and Boost.Format come in handy from time to time. Other than that, it is mostly just a way for me to use certain TR1 facilities now when they might not be available, including std::tr1::shared_ptr.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,455
    Absolutely. I continue to try to find new ways of utilizing boost. It has so much stuff it's difficult to know when to use it.
    Before C++0x, boost::bind was one of my favorites. I also like Boost.Format.
    Smart pointers are a must. I made my own, but otherwise I'd use std::shared_ptr (C++0x), or alternatively, std::tr1::shared_ptr or boost::shared_ptr.
    lexical_cast is still heavily used everywhere I need to convert integers -> strings or vice versa.
    Boost also helps out on adding some operators to your classes and much more.
    When dealing with filesystems, I want to use Boost.Filesystem.
    Ah, and don't forget boost::array (now std::array or std::tr1::array).

    Probably more. And definetely more in the future.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,649
    What I've used -- filesystem, regex, datetime and program options -- are all pretty cool. I especially like the recursive directory iterator.

  5. #5
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    I've personally never used it. I'm not quite sure why; I have some phobia for third party code, as I have too much experience with extremely lousy coding. I know boost is of extremely good quality, but... the urge to use it has never been greater than my opposing to it.
    And about all those useful things listed before, I've written such classes myself at least once before...

    I suggest you use it unless you have the same phobia I have.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to set Boost up with MinGW?
    By TriKri in forum Windows Programming
    Replies: 4
    Last Post: 05-07-2010, 05:27 AM
  2. Boost Auto-Linking
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 12-30-2007, 05:11 AM
  3. Replies: 2
    Last Post: 12-12-2007, 05: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, 05:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21