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 - Code Parser complains of valid member function call in boost::tuple
Summary: Code Parser complains of valid member function call in boost::tuple
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.2
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-19 06:35 UTC by zachsaw
Modified: 2016-10-31 10:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;
}