mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-01 21:39:09 -06:00
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:
parent
00a6a6c9be
commit
a356a100f7
@ -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) ;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user