diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-12-11 18:56:47 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-12-11 18:56:47 +0800 |
commit | 222790ffab92aa1c18d27c2c8550221475654bee (patch) | |
tree | a397791e37d58c53b2afed45950814b31b9c4927 | |
parent | c7c189cac0313320a2c8e69350dde5c31a1786c0 (diff) | |
download | dexon-solidity-222790ffab92aa1c18d27c2c8550221475654bee.tar dexon-solidity-222790ffab92aa1c18d27c2c8550221475654bee.tar.gz dexon-solidity-222790ffab92aa1c18d27c2c8550221475654bee.tar.bz2 dexon-solidity-222790ffab92aa1c18d27c2c8550221475654bee.tar.lz dexon-solidity-222790ffab92aa1c18d27c2c8550221475654bee.tar.xz dexon-solidity-222790ffab92aa1c18d27c2c8550221475654bee.tar.zst dexon-solidity-222790ffab92aa1c18d27c2c8550221475654bee.zip |
fixed solidity not building on macos
-rw-r--r-- | Types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -52,7 +52,7 @@ shared_ptr<Type const> Type::fromElementaryTypeName(Token::Value _typeToken) else if (_typeToken == Token::ADDRESS) return make_shared<IntegerType const>(0, IntegerType::Modifier::ADDRESS); else if (_typeToken == Token::BOOL) - return make_shared<BoolType const>(); + return shared_ptr<BoolType const>(); else BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Unable to convert elementary typename " + std::string(Token::toString(_typeToken)) + " to type.")); @@ -87,7 +87,7 @@ shared_ptr<Type const> Type::forLiteral(Literal const& _literal) { case Token::TRUE_LITERAL: case Token::FALSE_LITERAL: - return make_shared<BoolType const>(); + return shared_ptr<BoolType const>(); case Token::NUMBER: return IntegerType::smallestTypeForLiteral(_literal.getValue()); case Token::STRING_LITERAL: |