Skip to content

Commit d3487b7

Browse files
committed
Remove Debug time assertion by throw expression
1 parent 0e6e8c0 commit d3487b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

framework/colouring/graph_colouring.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ namespace graph_colouring {
223223
assert(threadCount > 0);
224224

225225
if (4 * threadCount > strategies.size() * populationSize) {
226-
std::cerr << "WARNING: Make sure that populationSize is bigger than 4*categoryCount*threadCount\n";
227-
assert(0);
226+
throw "WARNING: Make sure that populationSize is bigger than 4*categoryCount*threadCount\n";
228227
}
229228

230229
std::vector<Colouring> population(strategies.size() * populationSize);

0 commit comments

Comments
 (0)