User forums > Help
Code Completion Issue
(1/1)
LazyCoder:
Hi everyone...
Code::Blocks Nightly Build Rev.10341
CC fails in recognizing C++ enums that have an explicit type specifier.
For example:
--- Code: ---enum Colors: char { Red, Green, Blue };
--- End code ---
or
--- Code: ---enum class Colors: char { Red, Green, Blue };
--- End code ---
The Colors enum is NOT recognizable at all by CC!
But still, CC can recognize the following forms:
--- Code: ---enum Colors { Red, Green, Blue };
enum class Colors { Red, Green, Blue };
--- End code ---
So, the problem seems to be with the explicit type specifiers.
Regards.
ollydbg:
Thanks for reporting this bug.
I have a patch to fix this issue, but the patch is not in trunk now, see: Code::Blocks / Tickets / #176 Code completion fails with enums whose underlying types are specified (in C++11).
Navigation
[0] Message Index
Go to full version