Skip to content

Fix conversion of r-value into l-value reference in discarded function

Simon Praetorius requested to merge issue/discarded-arguments-gmshreader into master

Binding a l-value reference to an r-value should not be possible. Unfortunately, a named r-value reference is an l-value. For some reasons old compiler (old c++ standard < c++23) accept this conversion. In gmshreader test this fails to compile in recent c++ standards.

Merge request reports

Loading