-
- Downloads
Add a mechanism for the transition from FieldVector::size as an enum member
to FieldVector::size() as a method. With this patch applied FieldVector::size remains an enum, hence all your code compiles as before. However you get a compiler warning explaining the issue and suggesting to configure with --enable-fieldvector-size-is-method. If you do so, then FieldVector::size becomes a method, and you may have to go out and adjust your code. The configure flag is transitional and will be removed after dune 2.2 is out. Remember that there is no smoother way to do the transition, as you can't have FieldVector::size to be both an enum value and a method at the same time. This fixes FlySpray issue 819. [[Imported from SVN: r6486]]
Showing
- dune/common/fvector.hh 17 additions, 2 deletionsdune/common/fvector.hh
- dune/common/test/fvectortest.cc 6 additions, 0 deletionsdune/common/test/fvectortest.cc
- m4/dune_common.m4 5 additions, 0 deletionsm4/dune_common.m4
- m4/dune_fieldvector_size_is_method.m4 17 additions, 0 deletionsm4/dune_fieldvector_size_is_method.m4
m4/dune_fieldvector_size_is_method.m4
0 → 100644
Please register or sign in to comment