error in template usage in gcc 3.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
        Iam getting an error with gcc 3.4 as such

warning: there are no arguments to `size' that depend
on a template parameter, so a declaration of `size'
must be available.

Could anybody please let me know changes reqd in
following code.

I suppose, change in  size() to BoundedArray::size(),
would do the job. Is it so.


template <class T> INLINE  int
BoundedArray<T>::upperBound() const
{
    return l() + size() - 1;
}


If facts don't fit theory, change the facts
                                                        -Albert Einstein


		
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux