add a stand alone copy of boost::alignment::aligned_allocator

unfortunately, this is necessary because
boost::alignment::aligned_allocator requires a fairly recent version
of boost (i.e., 1.56) while the oldest platform supported by OPM
(i.e., Ubuntu 14.04LTS) only ships boost 1.54. Anyway, I'm wondering
why there is no std:: version of this class in c++-2011...
This commit is contained in:
Andreas Lauser
2016-10-27 19:45:57 +02:00
parent 911abfd05b
commit 70e55bf0ca

View File

@@ -30,6 +30,7 @@
#include <ewoms/aux/baseauxiliarymodule.hh>
#include <ewoms/common/propertysystem.hh>
#include <ewoms/common/alignedallocator.hh>
#include <opm/material/fluidstates/CompositionalFluidState.hpp>
#include <opm/material/densead/Evaluation.hpp>
@@ -39,8 +40,6 @@
#include <dune/common/version.hh>
#include <dune/geometry/referenceelements.hh>
#include <boost/align/aligned_allocator.hpp>
#include <map>
namespace Ewoms {
@@ -1515,7 +1514,7 @@ protected:
std::string name_;
std::vector<DofVariables, boost::alignment::aligned_allocator<DofVariables, alignof(DofVariables)> > dofVarsStore_;
std::vector<DofVariables, Ewoms::aligned_allocator<DofVariables, alignof(DofVariables)> > dofVarsStore_;
std::map<int, DofVariables*> dofVariables_;
// the number of times beginIteration*() was called for the current time step