#46 Class browser does not list templated classes correctly

None
fixed
orwelldevcpp
None
2014-08-18
2013-02-03
Kris
No

Version: 5.3.0.4

OS version: Windows Vista SP2

Error reported
The class browser lists methods of templated classes as global and does not list members, unless they are declared in the main file (main.cpp). Furthermore, the class itself is not listed. Both templated classes declared in main.cpp and non-templated classes declared in any file are listed correctly.

Steps needed to reproduce the problem
Create a project with two files:

main.cpp:

#include "test.h"

int main() {
    return 0;
}

test.h:

template<typename T>
class test_class_1 {
    T member;
    int method() { return 0; }
}

Class browser contains only the following entries:
- method(): int
- main(): int

Discussion

  • orwelldevcpp
    orwelldevcpp
    2013-11-26

    • status: open --> fixed
    • assigned_to: orwelldevcpp
    • Milestone: -->