boostorg / boostorg/variant

Generic comparison operators

Open
#95 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
47
Forks
71
PR merge metrics
No merged PRs in 30d

Description

It could be useful to have comparison operators with types that are held in variant. For example:
```
variant v1(1), v2("2");
if (v1 < 1 || v2 > "hello") {
// ...
}

if (v1 < 1.0) { // compilation error
// ...
}
```

Issue was imported from [Trac 10845](https://svn.boost.org/trac10/ticket/10845)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.