https://bugs.kde.org/show_bug.cgi?id=472329

--- Comment #4 from m <kde.si...@dralias.com> ---
Ok, the pair can be replaced by int64_t, but that is it so far:

```cpp
#include <cstdint>
#include <iostream>
#include <optional>
#include <set>
#include <string>
void foo(std::optional<int64_t> f) {
  std::cout << (f ? *f : 0) << std::endl;
  std::set<int64_t> test;
  test.emplace(0);
  auto it{test.begin()};
  while (it != test.end()) {
    int64_t b{*it};
    if (f && *f != b) {
      it++;
      break;
    }
    std::cout << "";
    it++;
  }
}
int main() { foo(std::nullopt); }
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to