Boost C++ Libraries: Ticket #5361: Is boost::is_iequal supposed to work only with chars? https://svn.boost.org/trac10/ticket/5361 <p> While trying to use it to compare 2 std::strings I couldn't get it to work - I got std::bad_casts. Looking at the source code revealed that it used std::toupper which just uppercases a single char. Is it supposed to work like this or what? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5361 Trac 1.4.3 Pavol Droba Wed, 23 Mar 2011 19:22:50 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5361#comment:1 https://svn.boost.org/trac10/ticket/5361#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Hello, </p> <p> As the documentation states, is_iequal is "element" or "character" comparison predicate. As so it is used as a plugin to more complext algorithms that are using it for atomic operations on elements of a string. </p> <p> If you'd like to compare strings, you can use lexicographical_compare algorithm. </p> <p> Regards, Pavol. </p> Ticket