Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[expr.spaceship] strong_ordering::unequal / strong_ordering::nonequal #2206

Closed
Kannen opened this issue Jun 21, 2018 · 0 comments
Closed

[expr.spaceship] strong_ordering::unequal / strong_ordering::nonequal #2206

Kannen opened this issue Jun 21, 2018 · 0 comments
Assignees

Comments

@Kannen
Copy link
Contributor

Kannen commented Jun 21, 2018

In [expr.spaceship]/7, => strong_ordering::unequal

If the composite pointer type is a function pointer type, a pointer-to-member type, or std​::​nullptr_­t, the result is of type std​::​strong_­equality; the result is std​::​strong_­equality​::​equal if the (possibly converted) operands compare equal ([expr.eq]) and std​::​strong_­equality​::unequal if they compare unequal, otherwise the result of the operator is unspecified.

In [cmp.strongeq] => strong_ordering::nonequal

public:
  // valid values
  static const strong_equality equal;
  static const strong_equality nonequal;
@jensmaurer jensmaurer self-assigned this Jun 27, 2018
@jensmaurer jensmaurer changed the title strong_ordering::unequal / strong_ordering::nonequal [expr.spaceship] strong_ordering::unequal / strong_ordering::nonequal Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants