Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363947

Summary: boost::is_any_of() highlighted as error (invalid arguments)
Product: [Tools] CDT Reporter: vaibhav
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: CLOSED DUPLICATE QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

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 ***