Skip to content

Enhancement: proper compile time errors (WIP)#30

Open
IkerGalardi wants to merge 1 commit into
mainfrom
ct-errors
Open

Enhancement: proper compile time errors (WIP)#30
IkerGalardi wants to merge 1 commit into
mainfrom
ct-errors

Conversation

@IkerGalardi
Copy link
Copy Markdown
Owner

Using the static_assert compile time checking custom messages can be sent. Using that, still, lots of template error stuff is thrown.

If there was a way to just print the line in which the error is thrown and the custom message, that would be much nicer than the current error stack.

This issue tries to solve the issue #26 .

@IkerGalardi IkerGalardi added help wanted Extra attention is needed enhancement Improvement on a current feature. labels Dec 14, 2021
@IkerGalardi IkerGalardi changed the title Enhancement: proper compile time errors Enhancement: proper compile time errors (WIP) Dec 15, 2021
@IkerGalardi
Copy link
Copy Markdown
Owner Author

IkerGalardi commented Dec 22, 2021

Don't think there is a better way than this. Still, better than what we have now, so we can merge to main this PR (when completed) and when we discover something as fancy as the #error preprocessor we can create another PR.

@IkerGalardi
Copy link
Copy Markdown
Owner Author

If issue #35 gets implemented it would be much easier to implement it as all the implementations would be centralized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement on a current feature. help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant