-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Fully Compatible
-
ALL
-
Dev Tools 2019-03-25, Dev Tools 2019-04-08, Dev Tools 2019-04-22, Dev Tools 2019-06-03, Dev Tools 2019-07-01
It appears that code of the following form segfaults due to recursion
unique_function<void(void)> _fun; auto assignFun(unique_function<void(void)> fun){ _fun = fun; }
This appears to be due to the fact that the unique_function ctor resolves to have a non-const lvalue reference parameter of unique_function, which is valid because of the templated ctor.