Menu

#175 CC patch for typedef declarations in class templates

Undefined
applied
ollydbg
Patch
2015-06-12
2015-06-07
jat1
No

Description of problem:

CC works when dealing with typedefs in normal classes:

class c1
{
    public:
        typedef string      s1;
};

c1.s1.    // displays string tokens

But fails when dealing with typedefs in class templates:

template<typename _Tp>
class c2
{
    public:
        typedef string      s2;
};

c2.s2.    // fails

I've attached a patch for this issue.

1 Attachments

Discussion

  • ollydbg

    ollydbg - 2015-06-08
    • assigned_to: ollydbg
     
  • ollydbg

    ollydbg - 2015-06-10

    Hi, the patch is applied in trunk(r10328) with some comments added. Thank you very much.

     
  • ollydbg

    ollydbg - 2015-06-10
    • status: open --> applied
     
  • Teodor Petrov

    Teodor Petrov - 2015-06-11

    I don't see any tests added to the cctest app!

     
  • ollydbg

    ollydbg - 2015-06-12

    Added in trunk now.

     

Log in to post a comment.

MongoDB Logo MongoDB