3f9e6a7be56299c0d9ebb7611cb782a11634a21f
Using a virtual base class DeckItem that exposed DeckInt/Double/String types means it cannot be held in a vector and managed automatically without unique_ptr, which is clunky and makes iterator aliases impossible. This patch moves the unique_ptr details into DeckItem which now behaves as if it was virtual, except it only forwards calls to its inner, managed object (much like private implementation). This gives the benefit of automatic/stack allocation, and no particular drawback aside from slightly less obvious implementation. Clients can still call get< int > on a DeckItem::double, but that was also possible with the virtual solution (i.e. nothing lost).
Description
Common components for OPM, in particular build system (cmake).
Languages
C++
79%
ECL
13.4%
Scheme
3.1%
CMake
2.4%
Python
1%
Other
1%