A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/cplusplus/draft/issues/5337 below:

[dcl.fct.def.default] Restrictions on what comparison operator function can be explicitly defaulted CWG2547 · Issue #5337 · cplusplus/draft · GitHub

[dcl.fct.def.default] p1 just states:

A function that is explicitly defaulted shall

If I don't omit some other rules, there are no more restrictions on what the comparison operator function shall satisfy.

Consider this example:

enum E{};
bool operator==(E,E) = default;

This example directly causes GCC to crash while Clang reports some diagnoses for which I cannot find the corresponding wording in the standard.


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