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

Make exception base class visible in basic_json #526

Merged
merged 2 commits into from Mar 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: pretty clean ChangeLog.md

# used programs
RE2C = re2c
RE2C := $(shell command -v re2c 2> /dev/null)
SED = sed

# main target
Expand Down Expand Up @@ -185,6 +185,9 @@ clang_sanitize: clean

# create scanner with re2c
re2c: src/json.hpp.re2c
ifndef RE2C
$(error "re2c is not available, please install re2c")
endif
$(RE2C) -W --utf-8 --encoding-policy fail --bit-vectors --nested-ifs --no-debug-info $< | $(SED) '1d' > src/json.hpp

# pretty printer
Expand Down
2 changes: 2 additions & 0 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1264,6 +1264,8 @@ class basic_json
/// Classes to implement user-defined exceptions.
/// @{

/// @copydoc detail::exception
using exception = detail::exception;
/// @copydoc detail::parse_error
using parse_error = detail::parse_error;
/// @copydoc detail::invalid_iterator
Expand Down
2 changes: 2 additions & 0 deletions src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -1264,6 +1264,8 @@ class basic_json
/// Classes to implement user-defined exceptions.
/// @{

/// @copydoc detail::exception
using exception = detail::exception;
/// @copydoc detail::parse_error
using parse_error = detail::parse_error;
/// @copydoc detail::invalid_iterator
Expand Down