Is there any way to invoke a user defined literal on lvalues?
e.g I would like to
int operator \"\" _xor1(int a) { return a^1; } // Works fine 17_xor1;
I'm not sure you really want to - as commented, you're probably better off defining a normal function and calling that - but you can call it using:
operator""_xor1(myInt);
See User-defined literals for more information.