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

or_else等において、呼び出した関数がmonasを返した場合に変換できない #7

Open
onihusube opened this issue Jun 16, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@onihusube
Copy link
Owner

onihusube commented Jun 16, 2021

int n= 0;
int* p = &n;

harmony::monas(p)
  | or_else([](auto&&) {
      return to_either(false);  // monas<sachet<bool, bool>>を返す
    });

この場合に呼び出す処理の戻り値型がmonasに包まれている可能性を考慮していない。

@onihusube onihusube changed the title or or_else等において、呼び出した関数がmonas Jun 16, 2021
@onihusube onihusube changed the title or_else等において、呼び出した関数がmonas or_else等において、呼び出した関数がmonasを返した場合に変換できない Jun 16, 2021
@onihusube onihusube added the bug Something isn't working label Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant