ENH: add possibility to change const reference in tmp.
- previously it was only possible to reset a pointer, but not to change a const-reference directly (needed a swap() to do this).
Showing
- applications/test/tmp/Test-tmp.C 29 additions, 10 deletionsapplications/test/tmp/Test-tmp.C
- src/OpenFOAM/memory/tmp/tmp.H 4 additions, 1 deletionsrc/OpenFOAM/memory/tmp/tmp.H
- src/OpenFOAM/memory/tmp/tmpI.H 10 additions, 1 deletionsrc/OpenFOAM/memory/tmp/tmpI.H
- src/OpenFOAM/memory/tmp/tmpNrc.H 4 additions, 1 deletionsrc/OpenFOAM/memory/tmp/tmpNrc.H
- src/OpenFOAM/memory/tmp/tmpNrcI.H 10 additions, 1 deletionsrc/OpenFOAM/memory/tmp/tmpNrcI.H
Please register or sign in to comment