alibaba / alibaba/async_simple

redifinition of struct hash<coroutine_handle<_Tp> >

Open
#118 8 comments 0 reactions 1 assignee Claimed by @ChuanqiXu9 View on GitHub
Dominant language
C++
Stars
2.2k
Forks
316
Avg merge
1d 13h
Merged PRs (30d)
3

Description

### Search before asking

- [x] I searched the [issues](https://github.com/alibaba/async_simple/issues) and found no similar issues.

### What happened + What you expected to happen
I'm on MacOS and I use g++-11 (11.2.0) for both CXX and CC. I come across the error when build.
```
/async_simple/async_simple/experimental/coroutine.h:400:8: error:
redefinition of 'hash >'
struct hash > {
/include/c++/v1/experimental/coroutine:323:8: note:
previous definition is here
struct hash<_VSTD_CORO::coroutine_handle<_Tp> > {
```

### Reproduction way

### Anything else

### Are you willing to submit a PR?

- [ ] Yes I am willing to submit a PR!

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.