The test below yields undefined behavior or access violations using VS2017 Version 15.9.2.
It seems that the ref matcher tries to compare addresses of the std::reference_wrapper objects themselves instead of comparing the adresses of the objects referenced by the std::reference_wrapper.
The test below yields undefined behavior or access violations using VS2017 Version 15.9.2.
It seems that the ref matcher tries to compare addresses of the std::reference_wrapper objects themselves instead of comparing the adresses of the objects referenced by the std::reference_wrapper.