]> https://gitweb.dealii.org/ - dealii.git/commit
Return objects by value, rather than via a reference.
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 7 Apr 2023 19:39:29 +0000 (13:39 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 20 Apr 2023 19:56:44 +0000 (13:56 -0600)
commit80b24437feadd1d737b5efff67327508ff222c81
tree901d864ad6ef1c5d6518604f4e8dac75dfbcbfd8
parentc0a88eee4f13a4dfb3a47d1c0241ba84193b3862
Return objects by value, rather than via a reference.

We now have move operators that apply to return objects, along with mandatory
return value optimization. There is no readon not to use this.

This patch applies this to some internal functions. I will write a separate
patch to make this the case for the public interfaces that call these
functions.
source/dofs/dof_tools.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.