[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Codan & template template

> Hello,
>
> It seems that Codan experiences some troubles with templates templates.
>
> Here a declaration (.hpp) :
>
> template<unsigned int ChunkSizeT, bool ExpandableT, bool ZeroTerminatedT>
> class CString
> {
> ...
> template<template<class,class> class ListT, class UType, class Alloc, typename StringT>
> void split(ListT<UType,Alloc>& out, const StringT& sep, bool keepEmptyElements = false, bool trimElements = true, bool emptyBefore = true) const;
> ...
> };
>
> And here is the definition (.hxx) :
>
> template<unsigned int ChunkSizeT, bool ExpandableT, bool ZeroTerminatedT>
> template<template<class,class> class ListT, class UType, class Alloc, class StringT>
> void CString<ChunkSizeT,ExpandableT,ZeroTerminatedT>::split(ListT<UType,Alloc>& out, const StringT& sep, bool keepEmptyElements, bool trimElements, bool emptyBefore) const
> {
> ...
> }
>
>
> In the definition
>
> void CString<ChunkSizeT,ExpandableT,ZeroTerminatedT>::split
>
> is underlined in red.
>
> The pop-up message tells "Member declration not found"
> The autocompletion shows me the split function, but the first argument type is marked with a question mark.
>
> I tried with Indigo and the last nightly build of Juno (20120202-1513).

Looks like a bug in the indexer (it works if you put the declaration and definition in the same file).

Can you file a bug (https://bugs.eclipse.org/bugs/enter_bug.cgi?product=CDT) under cdt-indexer?

Thanks,
Nate