3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-05 02:40:25 +00:00

Use static constexpr instead of static const where possible.

In particular inside class declarations, a static const
assignment is technically not a definition, while constexpr is.

Signed-off-by: Henner Zeller <h.zeller@acm.org>
This commit is contained in:
Henner Zeller 2020-04-14 14:19:38 -07:00
parent 6c16fd760b
commit 5c6e681673
2 changed files with 4 additions and 5 deletions

View file

@ -316,7 +316,7 @@ class SubCircuit::SolverWorker
// helper functions for handling permutations
static const int maxPermutationsLimit = 1000000;
static constexpr int maxPermutationsLimit = 1000000;
static int numberOfPermutations(const std::vector<std::string> &list)
{
@ -1689,4 +1689,3 @@ void SubCircuit::Solver::clearConfig()
{
worker->clearConfig();
}