Does this work for you on your machine? It compiles in GCC 14.2 for me, but not 15.1?
#include <cstdio>
#include <map>
#include <expected>
#include <system_error>
template <class T>
struct Value {
int v;
};
int main() {
std::map<int, Value<void(std::expected<int, std::error_condition>)>> m;
auto it = m.find(3);
if (it == m.end()) {
printf("Not there!\n");
}
}
Compiler flags: '-O3 -std=c++23`
![[WTS] Teenage Engineering PO-33 - $80 [L] Atlanta, GA](https://i.redd.it/yuu0pbqq2x6c1.jpeg)
![[WTS]/[WTT] Critter and Guitari Organelle M [L] Atlanta, GA](https://i.redd.it/b8epx0n8zv3c1.jpg)
![[WTS/WTT] Critter and Guitari Organelle M [L] Atlanta, GA](https://i.redd.it/vusc6wivyv3c1.jpg)