]> https://gitweb.dealii.org/ - dealii.git/commit
Bugfix: Use declval in decltype expression
authorMatthias Maier <tamiko@43-1.org>
Sat, 12 Sep 2015 06:41:15 +0000 (01:41 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sat, 12 Sep 2015 06:41:15 +0000 (01:41 -0500)
commit1db7463754781fee2c1c3146ca90851fd2aab790
treeb95e33606e4100255d1f9d7350ca0bf02da49aba
parentb437e7c3634f3c733a21ab664b8629052ef7fa15
Bugfix: Use declval in decltype expression

```
decltype(std::declval<T>() * std::declval<U>())
```
is the correct syntax. This does not require that ```T``` and ```U``` have
default constructors...
include/deal.II/base/template_constraints.h

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.