emscripten-core / emscripten-core/emscripten

std::string_view initialization support in val.h

Open
#6,621 7 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Currently `val` class has a few constructors for different basic types. It would be nice to have `std::string_view` type constructor too. The only difference with `const char*` is that `std::string_view` is not necessarily null-terminated, instead, it holds the length information.

I guess it's a very low priority feature request. But is this something acceptable if someone implements and opens a PR?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.