bug-gmp
[Top][All Lists]
Advanced

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

error in template usage in gcc 3.4


From: deepak prabhas soi
Subject: error in template usage in gcc 3.4
Date: Tue, 17 May 2005 08:19:18 -0700 (PDT)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]