Skip to content

Commit

Permalink
Fix create_copyable() for use with std::expected (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmoene committed Jun 5, 2024
1 parent 653e4c2 commit f2c80bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/expected.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ class MyNonMoveableObject

nonstd::expected< MyNonMoveableObject, Error > create_copyable()
{
return MyNonMoveableObject{};
return nonstd::expected< MyNonMoveableObject, Error >{};
}

class MyNonCopyableObject
Expand Down

0 comments on commit f2c80bf

Please sign in to comment.