Skip to content

Add explicit conversion from json to std::string_view in conversion unit test#1639

Merged
nlohmann merged 1 commit intonlohmann:developfrom
taylorhoward92:develop
Jun 22, 2019
Merged

Add explicit conversion from json to std::string_view in conversion unit test#1639
nlohmann merged 1 commit intonlohmann:developfrom
taylorhoward92:develop

Conversation

@taylorhoward92
Copy link

Addresses #1634 by adding explicit conversion to std::string_view.


Pull request checklist

Read the Contribution Guidelines for detailed information.

  • Changes are described in the pull request, or an existing issue is referenced.
  • The test suite compiles and runs without error.
  • Code coverage is 100%. Test cases can be added by editing the test suite.
  • The source code is amalgamated; that is, after making changes to the sources in the include/nlohmann directory, run make amalgamate to create the single-header file single_include/nlohmann/json.hpp. The whole process is described here.

@taylorhoward92 taylorhoward92 changed the title Add explicit conversion from json to std::string_view Add explicit conversion from json to std::string_view in conversion unit test Jun 16, 2019
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2f389cd on taylorhoward92:develop into 4fc98e0 on nlohmann:develop.

Copy link
Owner

@nlohmann nlohmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@nlohmann
Copy link
Owner


🔖 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

  • Fix a conversion to std::string_view in the unit tests.

Contributor entry


@nlohmann
Copy link
Owner

Thanks!

@nlohmann nlohmann modified the milestones: Release 3.6.2, Release 3.7.0 Jul 9, 2019
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.

3 participants