[Dune] [#1024] Constructor call DiagonalMatrix<K, n>::DiagonalMatrix(FieldVector<K, 1>) ambiguous for n>2

Dune flyspray at dune-project.org
Fri Jan 20 14:27:15 CET 2012


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#1024 - Constructor call DiagonalMatrix<K,n>::DiagonalMatrix(FieldVector<K,1>) ambiguous for n>2
User who did this - Uli Sack (usack)

----------
OK, it seems not to be of much interest. Anyway, here's the SFINAE/enabled_if solution Carsten mentioned:

template<class C>
FieldVector (const DenseVector<typename Dune::enable_if<IsFieldVectorSizeCorrect<C,SIZE>::value,C>::type > & x)

It works for my test case. Also it wouldn't break implicit type conversion but at the same time render the static_assertion superfluous. A patch implementing this is attached.
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=1024#comment3055

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list