Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d3487b7

Browse files
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

Lines changed: 1 addition & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /