]> https://gitweb.dealii.org/ - dealii-svn.git/commit
In some situations, the C++ standard requires a copy constructor to be accessible...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Feb 2004 14:54:53 +0000 (14:54 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Feb 2004 14:54:53 +0000 (14:54 +0000)
commit6f300eed62127d3972eaa75a0b1b10fcb91c2967
tree39be5079971405d7e4325054d475adc49fa1adb5
parent957caa93eceed746330f501c9b118169949b3857
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.