]> https://gitweb.dealii.org/ - dealii.git/commit
In some situations, the C++ standard requires a copy constructor to be accessible...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 3 Feb 2004 14:54:53 +0000 (14:54 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 3 Feb 2004 14:54:53 +0000 (14:54 +0000)
commit02ef8bb0cb8fb33f940e6523b9ee001e329d6204
tree3618fa0bc069c40c3efc0824c067d559a08ad7c1
parent50a8ef36c2dda3b0b401e73b59708a40a0cd1a2b
In some situations, the C++ standard requires a copy constructor to be accessible even if it is not used. In particular, this holds when one creates a temporary object and binds it to a const reference. In this case, the compiler will usually bind the temporary directly to the reference, but a copy constructor will still have to be accessible. An example is f(FE_Q<dim>(2)). To allow this to compile, we need to make copy constructors accessible, but if they are actually called, we simply throw an exception.

git-svn-id: https://svn.dealii.org/trunk@8384 0785d39b-7218-0410-832d-ea1e28bc413d
deal.II/deal.II/include/fe/fe.h
deal.II/deal.II/include/fe/fe_system.h
deal.II/deal.II/source/fe/fe.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.