From ad3fd5b12731eecdcef50548734b7e35e1ae5f2f Mon Sep 17 00:00:00 2001 From: Michael Kuron <mkuron@icp.uni-stuttgart.de> Date: Thu, 11 Apr 2019 16:18:04 +0200 Subject: [PATCH] Try to fix variadic templates on MSVC --- src/boundary/BoundaryHandling.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/boundary/BoundaryHandling.h b/src/boundary/BoundaryHandling.h index 4824d5655..96f93c991 100644 --- a/src/boundary/BoundaryHandling.h +++ b/src/boundary/BoundaryHandling.h @@ -102,7 +102,10 @@ public: BoundaryHandling( const std::string & identifier, FlagField_T * const flagField, const flag_t domain, const Boundaries & ... boundaryConditions, - const Mode mode = OPTIMIZED_SPARSE_TRAVERSAL ); + const Mode mode ); + BoundaryHandling( const std::string & identifier, FlagField_T * const flagField, const flag_t domain, const Boundaries & ... boundaryConditions ) : + BoundaryHandling( identifier, flagField, domain, boundaryConditions..., OPTIMIZED_SPARSE_TRAVERSAL ) + {} bool operator==( const BoundaryHandling & rhs ) const { WALBERLA_CHECK( false, "You are trying to compare boundary handling " << uid_ << // For testing purposes, block data items must be comparable with operator "==". " with boundary handling " << rhs.getUID() << // Since instances of type "BoundaryHandling" are registered as block data items, -- GitLab