We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e6e8c0 commit d3487b7Copy full SHA for d3487b7
framework/colouring/graph_colouring.cpp
@@ -223,8 +223,7 @@ namespace graph_colouring {
223
assert(threadCount > 0);
224
225
if (4 * threadCount > strategies.size() * populationSize) {
226
- std::cerr << "WARNING: Make sure that populationSize is bigger than 4*categoryCount*threadCount\n";
227
- assert(0);
+ throw "WARNING: Make sure that populationSize is bigger than 4*categoryCount*threadCount\n";
228
}
229
230
std::vector<Colouring> population(strategies.size() * populationSize);
0 commit comments