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

unicode: char16_t* is compiler error, but char16_t[] is accepted #1297

Closed
igoloe opened this issue Oct 15, 2018 · 1 comment
Closed

unicode: char16_t* is compiler error, but char16_t[] is accepted #1297

igoloe opened this issue Oct 15, 2018 · 1 comment
Labels
state: needs more info the author of the issue needs to provide more details

Comments

@igoloe
Copy link

igoloe commented Oct 15, 2018

  • What is the issue you have?
    nlohman::json{char16_t*} is a compiler error, but nlohman::josn{char16_t[]) is accepted
  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?
    just compile as described
  • What is the expected behavior?
    char16_t* and char16_t[] should be handled the same way.
    Because both define a utf16 sequence, automatic conversion to utf8 is expected.
    Same is true for u16string and u16string_view.
  • And what is the actual behavior instead?
    char16_t* is a compile error and char16_t[] is stored as array of values.
  • Which compiler and operating system are you using? Is it a [supported compiler]
    visual studio 2017 15.4.1
  • Did you use a released version of the library or the version from the develop branch?
    released, 3.1.2
@nlohmann
Copy link
Owner

How is this issue related to #1298?

@nlohmann nlohmann added the state: needs more info the author of the issue needs to provide more details label Oct 18, 2018
@nlohmann nlohmann closed this as completed Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs more info the author of the issue needs to provide more details
Projects
None yet
Development

No branches or pull requests

2 participants