www.digitalmars.com         C & C++   DMDScript  

c++.stlsoft - about string_trim_functions.hpp

reply "chenchang" <baibaichen sohu.com> writes:
hi , when i use stlsoft::trim_left which defined string_trim_functions.hpp,
the vc7.1 compile failed with this message:
         string_trim_functions.hpp(155) : error C3861: 'find_if': identifier
not found, even with argument-dependent lookup

it seems that it miss include algorithm header, i suggest to add algorithm
header in the string_trim_functions.hpp, just for following this item
    Item 48. Always #include the proper headers. (effective stl by scott
meyers)

thanks
chang
Dec 12 2005
parent "Matthew" <matthew stlsoft.com> writes:
Thanks for spotting that. It's now fixed, and will be included in the next 
release

Cheers

Matthew

"chenchang" <baibaichen sohu.com> wrote in message 
news:dnluiv$dsl$1 digitaldaemon.com...
 hi , when i use stlsoft::trim_left which defined 
 string_trim_functions.hpp,
 the vc7.1 compile failed with this message:
         string_trim_functions.hpp(155) : error C3861: 'find_if': 
 identifier
 not found, even with argument-dependent lookup

 it seems that it miss include algorithm header, i suggest to add algorithm
 header in the string_trim_functions.hpp, just for following this item
    Item 48. Always #include the proper headers. (effective stl by scott
 meyers)

 thanks
 chang

 
Dec 13 2005