X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.5 required=5.0	tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: mjD.OBqswBAPbVUxYJaYPvc61jLEnpq8VnBwJGdbEJOPA9xw
Message-ID: <4ED4CBDA.1090303@sbcglobal.net>
Date: Tue, 29 Nov 2011 12:11:06 +0000
From: Greg Chicares <gchicares@sbcglobal.net>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: How to get std::strtoull (unsigned long long)?
References: <OFAEC4844B.D2808564-ONC1257957.0035691D-C1257957.00374E79@de.ibm.com> <CAEhDDbDnBSxmVVfghsEaRrCa5a89ESAo_Pf6jMcVZh-Uq-STnQ@mail.gmail.com>
In-Reply-To: <CAEhDDbDnBSxmVVfghsEaRrCa5a89ESAo_Pf6jMcVZh-Uq-STnQ@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 2011-11-29 10:22Z, Csaba Raduly wrote:
> On Tue, Nov 29, 2011 at 11:04 AM, Markus Selve  wrote:
>>
>> $ g++ -Wall -o tt tt.cpp
>> tt.cpp: In function 'int main(int, char**)':
>> tt.cpp:7:9: error: 'strtoull' is not a member of 'std'

The default C++ dialect is based on the 1998 standard, which
lacks strtoull() because that function first appeared in C99.

> Alas, cstdlib is missing the necessary using directive:
[...]
>   using ::strtod;
>   using ::strtol;
>   using ::strtoul;

Adding a using-declaration for ::strtoull would be a reasonable
extension, as long as '-std=c++98' is not specified.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

