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

Add static assertion for missing binary function in SAX interface #2282

Merged
merged 1 commit into from
Jul 19, 2020

Conversation

nlohmann
Copy link
Owner

In #1662, we added function bool binary(binary_t&) to the SAX interface. If the user inherits from the json_sax class, then an error occurs complaining about instantiation of an abstract class, see #2235. This PR also adds a static assertion to detect the error in case of template usage.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 7fc4b29 on missing_sax_check into a10d486 on develop.

@nlohmann nlohmann merged commit b1da58b into develop Jul 19, 2020
@nlohmann nlohmann deleted the missing_sax_check branch July 19, 2020 16:09
@nlohmann
Copy link
Owner Author


🔖 Release item

This issue/PR will be part of the next release of the library. This template helps preparing the release notes.

Type

  • ✨ New Feature
  • 🐛 Bug Fix
  • ⚡️ Improvement
  • 🔨 Further Change
  • 🔥 Deprecated function

Description


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

Successfully merging this pull request may close these issues.

2 participants