Fix minor issue with const POD requirements.

A user-defined default constructor is required in this situation
unless explicitly using the empty-brace-init syntax.

See discussion here:
http://stackoverflow.com/questions/7411515/why-does-c-require-a-user-provided-default-constructor-to-default-construct-a
This commit is contained in:
Atgeirr Flø Rasmussen 2016-02-11 16:17:17 +01:00
parent 00a6a6c9be
commit a356a100f7

View File

@ -171,7 +171,7 @@ namespace Opm
template <class State>
void resize(const Wells* wells, const State& state) {
const WellStateFullyImplicitBlackoil dummy_state; //Init with an empty previous state only resizes
const WellStateFullyImplicitBlackoil dummy_state{}; // Init with an empty previous state only resizes
init(wells, state, dummy_state) ;
}