aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-25 00:32:15 +0800
committerChristian <c@ethdev.com>2014-10-25 01:40:47 +0800
commit58be273506bf30619952eedf4c469879050c05ed (patch)
tree4d9767dbe624d552f89a8cc1b8c48c54d21feb18 /Types.cpp
parent9141725cf238c028dd00f4a7f814878031ef48a0 (diff)
downloaddexon-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.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Types.cpp b/Types.cpp
index f0307a7c..cf901e64 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -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