Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363947 - boost::is_any_of() highlighted as error (invalid arguments)
Summary: boost::is_any_of() highlighted as error (invalid arguments)
Status: CLOSED DUPLICATE of bug 197989
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-16 13:17 EST by vaibhav CLA
Modified: 2011-11-28 04:03 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vaibhav CLA 2011-11-16 13:17:57 EST
Hi,

The following code is a slightly modified version of what I have seen in boost documentation:

#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/iter_find.hpp>
#include <vector>
#include <string>

std::string commands = "here,are,some,commands";
std::vector< std::string > commandVector;
const std::string delims = ",";

boost::split( commandVector, commands, boost::is_any_of(delims), boost::token_compress_on );


For some reason, is_any_of() and split() are underlined in red, yet it compiles perfectly.

I was wondering why this may be the case; I guess it is an issue with the indexer.

Thank you,
VK
Comment 1 Markus Schorn CLA 2011-11-28 04:03:44 EST
The provided code does not compile, the function call needs to be part of a fucntion defintion. Nevertheless, is_any_of() and split() cannot be resolved by CDT 8.0.1.
Works with the HEAD version of CDT (tested with boost 1.46.1). Most likely because of bug 197989.

*** This bug has been marked as a duplicate of bug 197989 ***