Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

Typedefs of templated classes

<< < (2/2)

blueshake:

--- Quote from: childinsilence on September 28, 2010, 05:00:26 pm ---You're welcome.

Another example. Maybe another bug. Again boost 1.40 on Ubuntu 10.04 with revision 6650:


--- Code: ---#include <boost/shared_ptr.hpp>

class Dummy
{
    Dummy();
    int m_dummy;
};
typedef boost::shared_ptr<Dummy> DummyPtr;

int main(void)
{
    DummyPtr ptrDummy = DummyPtr(new Dummy());
    ptrDummy->m_dummy; // Does not work. Shows members of boost::shared_ptr instead of Dummy.
    ptrDummy.get(); // Does the right.
    return 0;
}

--- End code ---

Cc returns a list of all symbols of boost::shared_ptr, but not m_dummy on the "->" operator. The dot operator does the right.


--- Code: ---template<typename T> class shared_ptr;
--- End code ---

Cheers!

--- End quote ---

should be fixed  in the next nightly build 8)

childinsilence:
"ptrDummy->m_dummy" isn't fixed in rev. 6701, which subsequents nightly build of rev. 6688.
May this be a consequence of overloading the "->" operator in boost::shared_ptr?

Borr:

--- Quote from: childinsilence on October 11, 2010, 09:41:56 am ---May this be a consequence of overloading the "->" operator in boost::shared_ptr?

--- End quote ---

I think for this reason Codecombletion does not work for the IBPP
http://forums.codeblocks.org/index.php/topic,13338.msg90045.html#msg90045

childinsilence:

--- Quote from: childinsilence on October 11, 2010, 09:41:56 am ---"ptrDummy->m_dummy" isn't fixed in rev. 6701, which subsequents nightly build of rev. 6688.
May this be a consequence of overloading the "->" operator in boost::shared_ptr?

--- End quote ---

Isn't fixed in 6906.

Navigation

[0] Message Index

[*] Previous page

Go to full version