[Dune-devel] PromotionTraits broken

Oliver Sander oliver.sander at tu-dresden.de
Sat Sep 19 08:25:52 CEST 2015


Hi Christoph,
sorry about that.  Please pull dune-common and try again.  As it turns out, with our current compiler
requirements the PromotionTraits class is not necessary at all in dotproduct.hh, and I simply removed
it completely.
Best,
Oliver

Am 18.09.2015 um 23:23 schrieb Christoph GrĂ¼ninger:
> Hi Oliver,
> your recent change to the PromotionTraits seems to have broken dune-istl:
>
> [  8%] Building CXX object dune/istl/test/CMakeFiles/dotproducttest.dir/dotproducttest.cc.o
> In file included from /temp/gruenich/dune-istl/dune/istl/test/dotproducttest.cc:4:
> In file included from /temp/gruenich/dune-istl/dune/istl/bvector.hh:12:
> /temp/gruenich/dune-common/dune/common/promotiontraits.hh:26:40: error: invalid operands to binary expression ('Dune::BlockVector<Dune::FieldVector<int, 5>, std::allocator<Dune::FieldVector<int, 5>
> > >' and 'Dune::BlockVector<Dune::FieldVector<std::complex<int>, 5>, std::allocator<Dune::FieldVector<std::complex<int>, 5> > >')
>     typedef decltype(std::declval<T1>()+std::declval<T2>()) PromotedType;
>                      ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
> Do you mind having a look?
>
> Bye
> Christoph
>





More information about the Dune-devel mailing list