Skip to content

Commit

Permalink
temporary fix of statenames
Browse files Browse the repository at this point in the history
  • Loading branch information
EirikKolas committed Oct 28, 2024
1 parent b95a938 commit 661b85f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ template <vortex::concepts::DynamicModelWithDefinedSizes... DynModels> class Imm
static constexpr bool MIN_DIM_x = std::min(N_DIMS_x);
static constexpr size_t N_MODELS = sizeof...(DynModels);

using StateName = decltype(DynModels::StateT::STATE_NAMES);
using StateNames = std::tuple<std::array<StateName, DynModels::N_DIM_x>...>;

static constexpr StateNames ALL_STATE_NAMES = {{DynModels::StateT::STATE_NAMES}...};
Expand Down
4 changes: 3 additions & 1 deletion vortex-filtering/include/vortex_filtering/models/state.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ struct StateMinMax {

template <typename StateName>
requires std::is_integral_v<StateName> || std::is_enum_v<StateName>
using StateMap = std::map<StateName, StateMinMax>;
using StateMapT = std::map<StateName, StateMinMax>;

using StateMap = StateMapT<StateName>;

template <typename StateName>
requires std::is_integral_v<StateName> || std::is_enum_v<StateName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@
namespace vortex {
// Hover over the types in vscode to see the expanded types

ONE_TYPE_STRUCT(n)

ONE_TYPE_STRUCT(x)
ONE_TYPE_STRUCT(z)
ONE_TYPE_STRUCT(u)
Expand Down

0 comments on commit 661b85f

Please sign in to comment.