This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 215712

Summary: Code Parser complains of valid member function call in boost::tuple
Product: cnd Reporter: zachsaw
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description zachsaw 2012-07-19 06:35:00 UTC
typedef boost::tuple<int, int> IntIntTuple;
    IntIntTuple foo = boost::tuples::make_tuple(0, 0);
    int a = foo.get<0>();
    int b = foo.get<1>();

foo.get<0>(); and foo.get<1>();
gets their .get() method underlined in red.

Without the typedef, it works fine.
Comment 1 zachsaw 2012-07-19 06:39:41 UTC
It appears that the error happens regardless of typedef.
I suspect the Code Parser isn't parsing boost::tuple correctly.
Comment 2 Alexander Pepin 2012-09-24 16:33:36 UTC
Some set of accuracy tests should run on Windows
Comment 3 Alexander Simon 2014-08-13 14:46:01 UTC
compilable code example:

#include "boost/tuple/tuple.hpp"
int main (int argc, char** argv) {
    typedef boost::tuple<int, int> IntIntTuple;
    IntIntTuple foo = boost::tuples::make_tuple(0, 0);
    int a = foo.get<0>(); // unresolved get
    int b = foo.get<1>(); // unresolved get
    return 0;
}