
Is this that constructor... basic_string& assign(InputIter first, InputIter last) { //Dispatch depending on integer/iterator const bool aux_boolean = containers_detail::is_convertible<InputIter, std::size_t>::value; typedef containers_detail::bool_<aux_boolean> Result; return this->priv_assign_dispatch(first, last, Result()); } I am new to boost-interprocess. I don't know much about this. Any example converting the std:: string/c-string into boost basic_string will help me. I will be really thankful to you. Mathias Gaunard-2 wrote:
manish4gupta wrote:
How to convert std::string into boost string. I am doing some benchmarking by inserting the std::string value instead of char_string(ypedef of basic_string) but i am getting error message.
To convert between two different types of basic_string, you need to use the constructor that takes two iterators.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- View this message in context: http://www.nabble.com/How-to-convert-std%3A%3Astring-into-basic_string-tp254... Sent from the Boost - Users mailing list archive at Nabble.com.