Replies: 1 comment 3 replies
-
Hi Luca, Thank you for bringing this to our attention. Upon review, the example you mentioned is not included in the README.md file or any of the library's provided examples. It appears that the issue stems from the use of a unique_ptr variable that has been previously moved (using std::move). Once a variable has been moved, it enters an undefined state, and attempting to use it will result in a crash. In your second example, rearranging the statements so that variable moves occur as the last action resolves the issue. This ensures that variables are only moved after they have been fully utilized. Please let me know if you have any further questions or concerns. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm having some trouble with the example in README. This compiles correctly but gives a segfault when executed.
A way of making it work is the following:
I'm not sure why, unfortunately I don't have much time to study the problem. Hope this can help.
Thanks for you work,
Luca
Beta Was this translation helpful? Give feedback.
All reactions