public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Numeric_limits
@ 2002-10-14 12:06 agenkin
  2002-10-14 12:12 ` Numeric_limits Oscar Fuentes
  0 siblings, 1 reply; 5+ messages in thread
From: agenkin @ 2002-10-14 12:06 UTC (permalink / raw)
  To: gcc-help

numeric_limits template seems to be not supported. Any remedy?

Thank you.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Numeric_limits
  2002-10-14 12:06 Numeric_limits agenkin
@ 2002-10-14 12:12 ` Oscar Fuentes
  0 siblings, 0 replies; 5+ messages in thread
From: Oscar Fuentes @ 2002-10-14 12:12 UTC (permalink / raw)
  To: gcc-help

<agenkin@scils.rutgers.edu> writes:

> numeric_limits template seems to be not supported. Any remedy?

Could you be more specific? What version of g++/libstdc++ are you
using? G++ 3.2 comes with a correct <limits>

-- 
Oscar


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Numeric_limits
@ 2002-10-14 12:12 Moore, Mathew L
  0 siblings, 0 replies; 5+ messages in thread
From: Moore, Mathew L @ 2002-10-14 12:12 UTC (permalink / raw)
  To: 'agenkin@scils.rutgers.edu', gcc-help

Sure it's supported.  I use it all the time.  What version gcc are you
using?

  #include <iostream>
  #include <limits>
  int main()
  {
    std::cout << std::numeric_limits<double>::max() << std::endl;
  }

compiles and works fine in gcc 3.2.  Maybe something screwed up in your
installation?

--Matt


> -----Original Message-----
> From: agenkin@scils.rutgers.edu [mailto:agenkin@scils.rutgers.edu]
> Sent: Monday, October 14, 2002 14:59
> To: gcc-help@gcc.gnu.org
> Subject: Numeric_limits
> Sensitivity: Confidential
> 
> 
> numeric_limits template seems to be not supported. Any remedy?
> 
> Thank you.
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: numeric_limits
  2002-09-20  5:32 numeric_limits Matthias Oltmanns
@ 2002-09-20  7:45 ` Claudio Bley
  0 siblings, 0 replies; 5+ messages in thread
From: Claudio Bley @ 2002-09-20  7:45 UTC (permalink / raw)
  To: Mathias.Oltmanns.Oltmanns; +Cc: gcc-help

>>>>> "Matthias" == Matthias Oltmanns <Mathias.Oltmanns.Oltmanns@sysde.eads.net> writes:

    Matthias> Hi, I'am using gcc-2.96-85 with libstdc++-2.96-85 and i
    Matthias> wonder where the header <limits> has to be found. (see
    Matthias> Stroustrup 22.2)

    Matthias> I would like to use things like
    Matthias> numeric_limits<anyType>::is_signed

    Matthias> Any suggestions?

Upgrade your libstdc++ or/and your compiler to a real release such as
GCC 3.0, 3.1 or 3.2 OR use another Standard C++ library such as e.g.
stlport.

-- 
Claudio Bley                                                        _ 
                                             ASCII ribbon campaign ( )
ICQ# 83197241                                 - against HTML email  X 
http://www.cs.uni-magdeburg.de/~bley/                     & vCards / \

^ permalink raw reply	[flat|nested] 5+ messages in thread

* numeric_limits
@ 2002-09-20  5:32 Matthias Oltmanns
  2002-09-20  7:45 ` numeric_limits Claudio Bley
  0 siblings, 1 reply; 5+ messages in thread
From: Matthias Oltmanns @ 2002-09-20  5:32 UTC (permalink / raw)
  To: gcc-help

Hi,

I'am using gcc-2.96-85 with libstdc++-2.96-85 and i wonder
where the header <limits> has to be found. (see Stroustrup 22.2)

I would like to use things like
numeric_limits<anyType>::is_signed

Any suggestions?

Thanks in advance
Matthias Oltmanns


-- 
Matthias Oltmanns, Dipl.-Inf.
bei EADS GmbH, Wilhelmshaven
Tel: +49 (4421) 1543 274
mailto:Mathias.Oltmanns.Oltmanns@sysde.eads.net

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-14 19:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-14 12:06 Numeric_limits agenkin
2002-10-14 12:12 ` Numeric_limits Oscar Fuentes
  -- strict thread matches above, loose matches on Subject: below --
2002-10-14 12:12 Numeric_limits Moore, Mathew L
2002-09-20  5:32 numeric_limits Matthias Oltmanns
2002-09-20  7:45 ` numeric_limits Claudio Bley

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).