![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 | |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#12 | |||||
|
Programmer
|
I am sorry cerulean, but i think you (and maybe the others) didnt understand the code.
Quote:
Quote:
boost::is_any_of(""); is only one example you could also use std::eqal and many more you can implement every other kind of predecate yourself!!! or to work on non-char delimters you also could use boost::tokenizer Quote:
sorry the std::copy function is just an additional output. here is the code again! #include<string>
#include<vector>
#include<boost/algorithm/string.hpp>
int main() {
std::vector<std::string> res;
boost::split(res,"hallo-this-is-a-string",boost::is_any_of("-"));
}I am sorry but if somebody doesnt understand some code he should't start talking about its correctness.... Quote:
using a function that exactly does what somebody asks for is complicated? of is the handling of function(param1,param2.param3) too complicated? i think u really didnt understand! the author doesnt need to do anything but use the function.. thats really not a conplicated thing... whats your prob with templates ? I think its one of the most powerfull things in c++ and you just dislike them or something.... I am sorry but this solutions is fast,optimized ( written by very good designers and coders) and really easy and intuitive to use.... sorry but i really didnt get your point... but if u think this whole thing is to complicated and a huge overhead then u also should stop using the string,vector,.... the whole stl... and you should also programm in c instead of c++... Quote:
its already decided that some boost thinkgs are in the next c++ standart and the string algo and regex things are candidates ... so what do you think about this.
__________________
of all the things he has lost, i think he misses his mind the most typedef typename pizza_t<oven_policy<225,12.5>,ingredient_policy<salami,mushroom,cheese> > Pizza; |
|||||
|
|
|
|
|
#13 | |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 498
Rep Power: 4
![]() |
Quote:
I hate them so much I refuse to code them myself -- I'll use those from STL because I don't have to actually read them to use them. The boost library examples you posted is totally beyond my comprehension. |
|
|
|
|
|
|
#14 | ||
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Quote:
ython), but for something like this I don't think it's needed. It is a large library.Quote:
![]() |
||
|
|
|
|
|
#15 | |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 498
Rep Power: 4
![]() |
Quote:
![]() |
|
|
|
|
|
|
#16 | |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Heh, I was just referring to the following:
Quote:
|
|
|
|
|
|
|
#17 | |
|
Programmer
|
Quote:
well the boost libs are sometimes big, and but you are able to include just a few parts. but i think the perfomance and overhead-argument is understandable, as u can see by the size of the binary. but sometimes this resources are not the limiting fact so its always good to know about the libs that are usable, but i have to admit thats its never wrong to write an own solution if a lib would be an overhead. and sometimes u have to do that and in other cases its just like there is just a little overhead, or you have to focus on another implementation level and so u could/should use a lib.. greets
__________________
of all the things he has lost, i think he misses his mind the most typedef typename pizza_t<oven_policy<225,12.5>,ingredient_policy<salami,mushroom,cheese> > Pizza; |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|