We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Operating system: Ubuntu 20.04.6 LTS
Compiler version: Clang 11
Eclipse iceoryx version: master
Observed result or behaviour:
iox::expected has a copy and a move assignment operator declared here:
iox::expected
iceoryx/iceoryx_hoofs/vocabulary/include/iox/expected.hpp
Lines 166 to 174 in 4739ffd
however, only the move assignment operator is defined
iceoryx/iceoryx_hoofs/vocabulary/include/iox/detail/expected.inl
Lines 111 to 121 in 4739ffd
As a result, a linker error is generated when attempting to run the following snippet ...
TEST_CASE("Test") { iox::expected<void, int> a = iox::ok(); iox::expected<void, int> b = iox::err(1); a = b; }
ld.lld: error: undefined symbol: iox::expected<void, int>::operator=(iox::expected<void, int> const&) >>> referenced by estimator_lib_test.cc >>> <REDACTED PATH>test.o:(C_A_T_C_H_T_E_S_T_2()) clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
Expected result or behaviour: No compiler error
Conditions where it occurred / Performed steps: See above
The text was updated successfully, but these errors were encountered:
@pbarone-latai Whoopsie. How did that happen.
Thanks for the finding, I will take care of this.
Sorry, something went wrong.
iox-eclipse-iceoryx#2216 Implement missing copy assignment operator f…
badde0e
…or expected
Merge pull request #2218 from elfenpiff/iox-2216-define-copy-assignme…
19184d4
…nt-operator-for-expected iox-#2216 Implement missing copy assignment operator for expected
elfenpiff
Successfully merging a pull request may close this issue.
Required information
Operating system:
Ubuntu 20.04.6 LTS
Compiler version:
Clang 11
Eclipse iceoryx version:
master
Observed result or behaviour:
iox::expected
has a copy and a move assignment operator declared here:iceoryx/iceoryx_hoofs/vocabulary/include/iox/expected.hpp
Lines 166 to 174 in 4739ffd
however, only the move assignment operator is defined
iceoryx/iceoryx_hoofs/vocabulary/include/iox/detail/expected.inl
Lines 111 to 121 in 4739ffd
As a result, a linker error is generated when attempting to run the following snippet ...
Expected result or behaviour:
No compiler error
Conditions where it occurred / Performed steps:
See above
The text was updated successfully, but these errors were encountered: