Changed assert(false) to assert(!"message") as recommended by C++ Coding Standards...
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Wed, 26 Oct 2011 21:46:36 +0000 (19:46 -0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Wed, 26 Oct 2011 21:46:36 +0000 (19:46 -0200)
src/icmp/icmpv4header.cpp
src/icmp/icmpv6header.cpp

index db621e7..bc6d8ce 100644 (file)
@@ -132,7 +132,7 @@ void Icmpv4Header::set_icmp_message_format( const Icmpv4Type type )
                 break;
             case Icmpv4Type_InvalidLast:
             default:
-                BOOST_ASSERT( false );
+                BOOST_ASSERT( !"Try to set an invalid ICMPv4 message type" );
                 break;
         }
 
index ae513c5..8d9a54c 100644 (file)
@@ -145,7 +145,7 @@ void Icmpv6Header::set_icmp_message_format( const Icmpv6Type type )
                 break;
             case Icmpv6Type_InvalidLast:
             default:
-                BOOST_ASSERT( false );
+                BOOST_ASSERT( !"Try to set an invalid ICMPv6 message type" );
                 break;
         }