Create pointer-to-const objects.
Older gcc (4.4) does not allow conversion of shared_ptr<Foo> to shared_ptr<const Foo>. Pointed out by @bska.
This commit is contained in:
parent
5690d20705
commit
cfd07600bc
@ -43,7 +43,7 @@ namespace Opm
|
||||
GridManager::GridManager(Opm::DeckConstPtr deck)
|
||||
: ug_(0)
|
||||
{
|
||||
auto eclipseGrid = std::make_shared<Opm::EclipseGrid>(deck);
|
||||
auto eclipseGrid = std::make_shared<const Opm::EclipseGrid>(deck);
|
||||
initFromEclipseGrid(eclipseGrid);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user