diff options
author | Christian <c@ethdev.com> | 2014-10-25 00:32:15 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-10-25 01:40:47 +0800 |
commit | 58be273506bf30619952eedf4c469879050c05ed (patch) | |
tree | 4d9767dbe624d552f89a8cc1b8c48c54d21feb18 /Types.cpp | |
parent | 9141725cf238c028dd00f4a7f814878031ef48a0 (diff) | |
download | dexon-solidity-58be273506bf30619952eedf4c469879050c05ed.tar.gz dexon-solidity-58be273506bf30619952eedf4c469879050c05ed.tar.zst dexon-solidity-58be273506bf30619952eedf4c469879050c05ed.zip |
Replace BOOST_ASSERT by assert.
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -20,6 +20,7 @@ * Solidity data types */ +#include <cassert> #include <libdevcore/CommonIO.h> #include <libdevcore/CommonData.h> #include <libsolidity/Types.h> @@ -51,7 +52,7 @@ std::shared_ptr<Type> Type::fromElementaryTypeName(Token::Value _typeToken) else if (_typeToken == Token::BOOL) return std::make_shared<BoolType>(); else - BOOST_ASSERT(false); // @todo add other tyes + assert(false); // @todo add other tyes } std::shared_ptr<Type> Type::fromUserDefinedTypeName(UserDefinedTypeName const& _typeName) @@ -61,7 +62,7 @@ std::shared_ptr<Type> Type::fromUserDefinedTypeName(UserDefinedTypeName const& _ std::shared_ptr<Type> Type::fromMapping(Mapping const&) { - BOOST_ASSERT(false); //@todo not yet implemented + assert(false); //@todo not yet implemented return std::shared_ptr<Type>(); } @@ -92,7 +93,7 @@ IntegerType::IntegerType(int _bits, IntegerType::Modifier _modifier): { if (isAddress()) _bits = 160; - BOOST_ASSERT(_bits > 0 && _bits <= 256 && _bits % 8 == 0); + assert(_bits > 0 && _bits <= 256 && _bits % 8 == 0); } bool IntegerType::isImplicitlyConvertibleTo(Type const& _convertTo) const |