Completion of template specialization.
Esben Mose Hansen
kde at mosehansen.dk
Wed Nov 12 18:42:12 UTC 2008
Hi,
a follow-up to my earlier mail: It appears that the following code gives some
odd completions:
template<bool T> struct truth_type{
int n;
};
template<> struct truth_type<true> {
int m;
};
int main() {
truth_type<true> tt;
truth_type<false> ft;
return tt.m || ft.n;
}
(Yes, yes, I know, sillly code)
placing the cursor after tt. in the last line should give me "int m" as the
only choice, but it gives me "int n" and "true T". Placing it after ft. in the
same line gives me "int m" (correctly) and also "false T". What's with the
false/true types named T? Surely that is a bug :)
I will perhaps poke around in this a bit more, and see what I can find.
--
Kind regards, Esben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20081112/4ba395fd/attachment.html>
More information about the KDevelop-devel
mailing list