public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* error in template usage in gcc 3.4
@ 2005-05-17 15:20 deepak prabhas soi
  0 siblings, 0 replies; only message in thread
From: deepak prabhas soi @ 2005-05-17 15:20 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-17 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-17 15:20 error in template usage in gcc 3.4 deepak prabhas soi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).