When using MSVC, collections always require their element type to be comparable
Open
- Dominant language
- C++
- Stars
- 213
- Forks
- 149
- Avg merge
- 18h 17m
- Merged PRs (30d)
- 2
Description
```c++
struct elem;
//bool operator==(const elem &, const elem &);
struct container {
const elem *begin() const;
const elem *end() const;
};
bool operator==(const container &, const container &);
std::ostream &operator<<(std::ostream &, const container &);
void foo(container &c)
{
BOOST_TEST(c == c);
}
```
This fails to compile in MSVC unless the `operator==` declaration on the second line is uncommented. That operator does not need to be defined because it is never actually used, but MSVC will complain about its absence if it is not declared.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.