Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 57874 invoked from network); 22 Jun 2007 14:56:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jun 2007 14:56:19 -0000 Received: (qmail 46580 invoked by uid 500); 22 Jun 2007 14:56:22 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 46571 invoked by uid 500); 22 Jun 2007 14:56:22 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 46560 invoked by uid 99); 22 Jun 2007 14:56:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2007 07:56:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2007 07:56:18 -0700 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l5MEtVXK014855 for ; Fri, 22 Jun 2007 14:55:31 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 22 Jun 2007 08:54:38 -0600 Message-ID: <467BE38C.5040207@roguewave.com> Date: Fri, 22 Jun 2007 08:58:20 -0600 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070221 SeaMonkey/1.1.1 MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: STDCXX examples fails and reasons [MSVC] References: <7BDB2168BEAEF14C98F1901FD2DE64389D67D6@epmsa009.minsk.epam.com> <467ABBBA.9030305@roguewave.com> <7BDB2168BEAEF14C98F1901FD2DE64389D68F3@epmsa009.minsk.epam.com> In-Reply-To: <7BDB2168BEAEF14C98F1901FD2DE64389D68F3@epmsa009.minsk.epam.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 22 Jun 2007 14:54:38.0363 (UTC) FILETIME=[41892EB0:01C7B4DD] X-Virus-Checked: Checked by ClamAV on apache.org Farid Zaripov wrote: >> -----Original Message----- >> From: Martin Sebor [mailto:sebor@roguewave.com] >> Sent: Thursday, June 21, 2007 8:56 PM >> To: stdcxx-dev@incubator.apache.org >> Subject: Re: STDCXX examples fails and reasons [MSVC] > > [...] > >> limits.cpp should produce the qnan for Quiet NAN and snan for >> Signaling NAN on all platforms. > > I can't find this requirement in standard. It's not in the C++ standard but it is in C99, under fprintf(), the f and F conversion specifier: A double argument representing an infinity is converted in one of the styles [-]inf or [-]infinity � which style is implementation-defined. A double argument representing a NaN is converted in one of the styles [-]nan or [-]nan(n-char-sequence) � which style, and the meaning of any n-char-sequence, is implementation-defined. The F conversion specifier produces INF, INFINITY, or NAN instead of inf, infinity, or nan, respectively. Martin