boostorg / boostorg/optional

implicit constructor not working

Open
#95 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
60
Forks
75
PR merge metrics
No merged PRs in 30d

Description

calls to `f3` and `f4` do not compile:
https://godbolt.org/z/K4c1edTK3

```
#include
#include
#include
#include

void f1( std::optional< std::string_view > ) {}
void f2( std::optional< boost::string_view > ) {}
void f3( boost::optional< std::string_view > ) {}
void f4( boost::optional< boost::string_view > ) {}

int main()
{
f1("hello");
f2("hello");
f3("hello");
f4("hello");
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.