From 0abb54eb19edca97fce5c3931984adcd5463bfec Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 21 Aug 2026 15:17:03 +0200 Subject: Dangling --- examples/schaefer_turek_durst_krause_rannbacher/sim.cpp | 8 ++++---- modules/core/c++/abstract/alloc.hpp | 2 +- modules/core/c++/abstract/common.hpp | 1 - modules/core/c++/abstract/data.hpp | 7 +++++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/examples/schaefer_turek_durst_krause_rannbacher/sim.cpp b/examples/schaefer_turek_durst_krause_rannbacher/sim.cpp index b3422a5..b9b3778 100644 --- a/examples/schaefer_turek_durst_krause_rannbacher/sim.cpp +++ b/examples/schaefer_turek_durst_krause_rannbacher/sim.cpp @@ -20,7 +20,7 @@ using LbmArgs = Args< >; } -template +template saw::error_or lbm_main(const saw::data& args){ using namespace kel::lbm; @@ -211,11 +211,11 @@ saw::error_or k_main(int argc, char** argv){ auto& coupling = an.template get<"coupling">(); if(coupling.stl_view() == "hlbm"){ - return lbm_main(args); + return lbm_main(args); } else if(coupling.stl_view() == "fplbm"){ - return lbm_main(args); + return lbm_main(args); } else if(coupling.stl_view() == "psm"){ - return lbm_main(args); + return lbm_main(args); } return saw::make_error("Invalid coupling"); diff --git a/modules/core/c++/abstract/alloc.hpp b/modules/core/c++/abstract/alloc.hpp index b15e737..5872c10 100644 --- a/modules/core/c++/abstract/alloc.hpp +++ b/modules/core/c++/abstract/alloc.hpp @@ -2,7 +2,7 @@ namespace kel { namespace lbm { -namespace all { +namespace rep { struct Native {}; } } diff --git a/modules/core/c++/abstract/common.hpp b/modules/core/c++/abstract/common.hpp index 408946c..1b4e150 100644 --- a/modules/core/c++/abstract/common.hpp +++ b/modules/core/c++/abstract/common.hpp @@ -150,5 +150,4 @@ template <> struct void_unfix { typedef void Type; }; template using unfix_void = typename void_unfix::Type; template constexpr bool always_false = false; - } // namespace saw diff --git a/modules/core/c++/abstract/data.hpp b/modules/core/c++/abstract/data.hpp index 327fb63..bef9a73 100644 --- a/modules/core/c++/abstract/data.hpp +++ b/modules/core/c++/abstract/data.hpp @@ -2,11 +2,14 @@ #include "schema.hpp" #include "encode.hpp" +#include "common.hpp" namespace kel { namespace lbm { -template -class data final {}; +template +class data final { + static_assert(always_false, "Invalid schema + encode in data specialization"); +}; template class data,Encode> final { -- cgit v1.2.3