# HG changeset patch
# User Peter Kovacs <kpeter@inf.elte.hu>
# Date 1222684448 -7200
# Node ID d91884dcd572f8f69253ac1d304f0a4a651da76c
# Parent 47b3a3b678379fa06a2c1f0ab2d1e0009ec0c666
Use DEBUG instead of ASSERT in graph extenders (ticket #17)
diff --git a/lemon/bits/base_extender.h b/lemon/bits/base_extender.h
a
|
b
|
|
298 | 298 | public: |
299 | 299 | Red() {} |
300 | 300 | Red(const Node& node) : Node(node) { |
301 | | LEMON_ASSERT(Parent::red(node) || node == INVALID, |
302 | | typename Parent::NodeSetError()); |
| 301 | LEMON_DEBUG(Parent::red(node) || node == INVALID, |
| 302 | typename Parent::NodeSetError()); |
303 | 303 | } |
304 | 304 | Red& operator=(const Node& node) { |
305 | | LEMON_ASSERT(Parent::red(node) || node == INVALID, |
306 | | typename Parent::NodeSetError()); |
| 305 | LEMON_DEBUG(Parent::red(node) || node == INVALID, |
| 306 | typename Parent::NodeSetError()); |
307 | 307 | Node::operator=(node); |
308 | 308 | return *this; |
309 | 309 | } |
… |
… |
|
330 | 330 | public: |
331 | 331 | Blue() {} |
332 | 332 | Blue(const Node& node) : Node(node) { |
333 | | LEMON_ASSERT(Parent::blue(node) || node == INVALID, |
334 | | typename Parent::NodeSetError()); |
| 333 | LEMON_DEBUG(Parent::blue(node) || node == INVALID, |
| 334 | typename Parent::NodeSetError()); |
335 | 335 | } |
336 | 336 | Blue& operator=(const Node& node) { |
337 | | LEMON_ASSERT(Parent::blue(node) || node == INVALID, |
338 | | typename Parent::NodeSetError()); |
| 337 | LEMON_DEBUG(Parent::blue(node) || node == INVALID, |
| 338 | typename Parent::NodeSetError()); |
339 | 339 | Node::operator=(node); |
340 | 340 | return *this; |
341 | 341 | } |