New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using trailing comma to describe enum yields unscrutable errors #4
Comments
Can you please post the exact code? |
I suspect adding a trailing comma to your own example would be enough, but here goes anyway. PS: it's not the same exact code I sent errors for, but fails the same way
Microsoft Visual Studio Professional 2019, Version 16.7.6 |
Oh, forgot to mention, I layered your Describe lib on top of Boost 1.74, which is my company's current version I can't upgrade. |
A trailing comma should now work (although it does cause a preprocessor warning on MSVC.) |
My enums are code-generated, and the last enumerator has a trailing comma, which is OK in C++11.
But when I copy/pasted it to turn it into a
BOOST_DESCRIBE_ENUM
, this yielding weird errors like below.Removing the trailing comma fixed the problem, but I wasted quite a bit of time on this.
Any way to fix this, so it works with trailing commas, as enums do?
Or at least tweak the code to yield a better error message?
The text was updated successfully, but these errors were encountered: