Use DEBUG instead of ASSERT in graph extenders (ticket #17)
authorPeter Kovacs <kpeter@inf.elte.hu>
Mon, 29 Sep 2008 12:34:08 +0200
changeset 289d91884dcd572
parent 288 47b3a3b67837
child 292 e7af73f1805e
child 293 47fbc814aa31
Use DEBUG instead of ASSERT in graph extenders (ticket #17)
lemon/bits/base_extender.h
     1.1 --- a/lemon/bits/base_extender.h	Mon Sep 29 09:58:25 2008 +0200
     1.2 +++ b/lemon/bits/base_extender.h	Mon Sep 29 12:34:08 2008 +0200
     1.3 @@ -298,12 +298,12 @@
     1.4      public:
     1.5        Red() {}
     1.6        Red(const Node& node) : Node(node) {
     1.7 -        LEMON_ASSERT(Parent::red(node) || node == INVALID,
     1.8 -                     typename Parent::NodeSetError());
     1.9 +        LEMON_DEBUG(Parent::red(node) || node == INVALID,
    1.10 +                    typename Parent::NodeSetError());
    1.11        }
    1.12        Red& operator=(const Node& node) {
    1.13 -        LEMON_ASSERT(Parent::red(node) || node == INVALID,
    1.14 -                     typename Parent::NodeSetError());
    1.15 +        LEMON_DEBUG(Parent::red(node) || node == INVALID,
    1.16 +                    typename Parent::NodeSetError());
    1.17          Node::operator=(node);
    1.18          return *this;
    1.19        }
    1.20 @@ -330,12 +330,12 @@
    1.21      public:
    1.22        Blue() {}
    1.23        Blue(const Node& node) : Node(node) {
    1.24 -        LEMON_ASSERT(Parent::blue(node) || node == INVALID,
    1.25 -                     typename Parent::NodeSetError());
    1.26 +        LEMON_DEBUG(Parent::blue(node) || node == INVALID,
    1.27 +                    typename Parent::NodeSetError());
    1.28        }
    1.29        Blue& operator=(const Node& node) {
    1.30 -        LEMON_ASSERT(Parent::blue(node) || node == INVALID,
    1.31 -                     typename Parent::NodeSetError());
    1.32 +        LEMON_DEBUG(Parent::blue(node) || node == INVALID,
    1.33 +                    typename Parent::NodeSetError());
    1.34          Node::operator=(node);
    1.35          return *this;
    1.36        }