A RetroSearch Logo

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

Search Query:

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

operator!() return type is inconsistent

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

125. valarray<T>::operator!() return type is inconsistent

Section: 29.6.2 [template.valarray] Status: TC1 Submitter: Judy Ward Opened: 1998-12-15 Last modified: 2016-01-28

Priority: Not Prioritized

View all other issues in [template.valarray].

View all issues with TC1 status.

Discussion:

In Section 29.6.2 [template.valarray] valarray<T>::operator!() is declared to return a valarray<T>, but in Section 29.6.2.6 [valarray.unary] it is declared to return a valarray<bool>. The latter appears to be correct.

Proposed resolution:

Change in Section 29.6.2 [template.valarray] the declaration of operator!() so that the return type is valarray<bool>.


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