Closed studiofuga closed 6 years ago
I know the problem. It's common among many function headers. I'm in the middle of fixing this but I have been preempted by other task. I'll post a fix as soon as possible
Thanks for the feedback. If you want to share the strategy for fixing, I would be pleased to sketch a patch on this. Bye
It was pretty the same in all headers so no need to split this work but you are welcomed with any other patches;)
I've just fixed the issue in master branch. Please check if it works for you.
It works like a charm, many thanks!
Environment
Ubuntu Linux 16.04, up to date.
Simply #including
usbg/function/ms.h
in a c++ file breaks the compilation, due to different handling of casting to unions in inlined functions.Expected result
Program compiles correctly like with gcc:
Result
Program doesn't compile with g++:
Version affected
commit 9e71df567e5e489419a7095f2885f64ffff4e058
Workaround
Add a proper #if instruction to remove the offending functions when compiling in c++