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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user