eclipse-iceoryx / eclipse-iceoryx/iceoryx

Implement `std::string_view` in C++14

Open
#1,723 0 comments 0 reactions 1 assignee Claimed by @mossmaurice View on GitHub
enhancement
Dominant language
C++
Stars
2.2k
Forks
492
Avg merge
18h 57m
Merged PRs (30d)
1

Description

## Brief feature description

Backport a non-owing `std::string_view` from C++17 to C++14. It can be useful for avoid to pass a `char*` where you can easily run into out-of-bounds problems, which is avoided using `string_view`:

```cpp
void foobar(char* myString)
{
// blablabla
}
```

## Detailed information

* [ ] Define API & possibly design document
* [ ] Implementation

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.