Skip to content
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

PocoDoc/CppParser fails to parse static_assert in class declaration #4869

Open
obiltschnig opened this issue Feb 14, 2025 · 0 comments
Open
Assignees
Labels

Comments

@obiltschnig
Copy link
Member

Using static_assert in a class declaration, such as in Poco::Any, causes CppParser to fail parsing the respective header, and as a consequence, PocoDoc does not generate documentation for that class. Workaround is to wrap the declaration in an #ifndef ..., as in:

#ifndef POCO_DOC
	static_assert(
		sizeof(AlignerType) < SizeV,
		"Aligner type is bigger than the actual storage, so SizeV should be made bigger otherwise you simply waste unused memory."
	);
#endif
@obiltschnig obiltschnig added this to the Release 1.15.0 milestone Feb 14, 2025
@obiltschnig obiltschnig self-assigned this Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant