]> https://gitweb.dealii.org/ - dealii.git/commit
Make Tensors trivially copyable. 3805/head
authorDavid Wells <wellsd2@rpi.edu>
Sun, 15 Jan 2017 23:08:07 +0000 (18:08 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Mon, 16 Jan 2017 05:20:00 +0000 (00:20 -0500)
commit0004f1cbcd251780dca5db668a638a1fed71816a
tree0752968b3af46697ef5f577cd0b4b04426d80b18
parentc37b1c530d8b0a4de817275d6fe766440d8506be
Make Tensors trivially copyable.

The implicitly defined copy constructors and assignment operators are no
different from the ones implemented prior to this patch, so we can clean things
up a bit by just using the defaults here.

This has the nice effect of making the class "trivially copyable", which means
compilers may optimize things by using memcpy to copy things instead of the copy
constructor.
include/deal.II/base/tensor.h
tests/base/tensor_trivial_copy.cc [new file with mode: 0644]
tests/base/tensor_trivial_copy.output [new file with mode: 0644]

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.