A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.github.io/LWG/issue690 below:

abs(long long) should return long long

This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD Editorial status.

690. abs(long long) should return long long

Section: 29.7 [c.math] Status: NAD Editorial Submitter: Niels Dekker Opened: 2007-06-10 Last modified: 2016-01-28

Priority: Not Prioritized

View all other issues in [c.math].

View all issues with NAD Editorial status.

Discussion:

Quoting the latest draft (n2135), 29.7 [c.math]:

The added signatures are:

long abs(long); // labs()
long abs(long long); // llabs()

Shouldn't abs(long long) have long long as return type?

Proposed resolution:

Change 29.7 [c.math]:

long long abs(long long); // llabs()

Rationale:

Had already been fixed in the WP by the time the LWG reviewed this.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4