Skip to content

Commit

Permalink
Comsetic errors fixed
Browse files Browse the repository at this point in the history
Uli Breymann pointed to missing includes (#include <cstdint>) and
Difference between the order of declaration and initialization in the
constructor in two classes.
  • Loading branch information
UlrichEisenecker committed Jan 12, 2024
1 parent 1a104ce commit 46f6221
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions src/features/features.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <cstddef>
#include <iostream>
#include <climits>
#include <cstdint> // because of std::uintmax_t

/*! This namespace contains all types and functions that are related
to feature location.
Expand Down Expand Up @@ -801,10 +802,11 @@ namespace features
}
}
private:
const feature_id_t m_n,
m_M;
const maxnat_t m_F,
m_S,
const feature_id_t m_n;
const maxnat_t m_F;
const feature_id_t m_M;

const maxnat_t m_S,
m_O,
m_A,
m_N,
Expand Down
5 changes: 3 additions & 2 deletions src/fl/fl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <iostream>
#include <vector> // because of vector<bool> and vector<>
#include <exception>
#include <cstdint> // because of std::uintmax_t
using namespace std;

/*! checking turns some checks for errors on or off.
Expand Down Expand Up @@ -147,9 +148,9 @@ class combination_t
return m_state;
}
private:
std::vector<combination_element_t> m_state;
combination_element_t m_k;
combination_element_t m_n;
combination_element_t m_k;
std::vector<combination_element_t> m_state;
};

/*! Type alias for the program specific name for a
Expand Down

0 comments on commit 46f6221

Please sign in to comment.