リテラル演算子を拡張して化合物を返すことは可能でしょうか?
例:
typedef struct { double a,b; } Pair;
Pair p = (Pair){1.2, 3.4}; // <-- Today: compound literal
/* Hypothetical future Operator: */
Pair operator"" _P(double a, double b) {
return Pair(a,b);
}
...
Pair p = (1.2, 3.4)_P; // <-- Would it be possible?