PDA

View Full Version : boost library?


stcogoli
2005-05-10, 18:34
i'm writing some stuff using the boost library and was just wondering if there's any reason why it's not used in xbmc. seems to me like it could simplify a lot of xbmc code ( e.g with its stl-safe smart pointers and serialization to xml features).

Hullebulle
2005-05-11, 00:50
the only reason that nobody added is that nobody added it. ;)

while you are thinking about adding boost maybe you wanna take a look at new filezilla version too? :nuts:

Gamester17
2005-05-11, 09:51
while you are thinking about adding boost maybe you wanna take a look at new filezilla version too? *:nuts:yes, please! :bowdown: *...please read the hints and tips in the suggestion/development threads here (link) (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=4;t=10498) and here (link) (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=5;t=12312) :saint:

jmarshall
2005-05-11, 10:54
boost (http://www.boost.org) is a generic c++ set of libraries. (nothing to do with ftp in this case). @stcogoli, the reason we haven't used it is because noone has decided to use it yet.

Gamester17
2005-05-11, 14:01
oh, boost for visual c++ (link) (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/boostvc.asp), is it kind of like stl (standard template library) (http://www.sgi.com/tech/stl/) or standard library extensions (http://open-std.org/jtc1/sc22/wg21/) td1 (technical report 1 (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1745.pdf))?, *...what would be the benifits (and what's the arguments againts) for xbmc?

stcogoli
2005-08-01, 17:57
1.)i think it could make saving data to xml less painfull.
2.)you could also have smart pointers to stl containers, which is really useful. e.g you can allocate a vector in a subroutine and return a pointer to that vector without having to clean it up outside the subroutine using something strange like

cfileitemlist itemlist(m_vecitems); // will clean up everything

it's no improvement for the xbmc functionality but i think it could clean up some of the code.