Boost logo

Boost Users :

From: Pavol Droba (droba_at_[hidden])
Date: 2008-04-02 14:40:50


Hi,

char* is not longer supported as a default range type by the range library.
you can use const char* literals only.

You can pass char* only if you convert it to a range using as_literal or as_array
helpers, that are part of the range library.

Best regards,
Pavol.

Michael Wieher wrote:
> /usr/include/boost/algorithm/string/trim.hpp:366: instantiated from
> 'void boost::algorithm::trim(SequenceT&, const std::locale&) [with
> SequenceT = char*]'
> datad/datarequest.cpp:32: instantiated from here
> /usr/include/boost/algorithm/string/trim.hpp:121: error: request for
> member 'erase' in 'Input', which is of non-class type 'char*'
>
> .. I'm passing trim() a char * ... seems like that doesn't make it
> happy, though?
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net