aboutsummaryrefslogtreecommitdiffstats
path: root/Types.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-01-27 20:53:13 +0800
committerchriseth <c@ethdev.com>2015-01-27 20:53:13 +0800
commit18fc2ed2d6a58b0064f6c1d2430ffe988f68b7ca (patch)
treed83c226c64315d5994190b61fc93c0a74fbd809d /Types.h
parent8dbdaa79e37619fc79b7111b12d5385f140fd1a1 (diff)
parentcad3d87482464017870080c54e3392bc5503ab20 (diff)
downloaddexon-solidity-18fc2ed2d6a58b0064f6c1d2430ffe988f68b7ca.tar.gz
dexon-solidity-18fc2ed2d6a58b0064f6c1d2430ffe988f68b7ca.tar.zst
dexon-solidity-18fc2ed2d6a58b0064f6c1d2430ffe988f68b7ca.zip
Merge pull request #857 from LianaHus/StringToHash
conversion for string to/from hash
Diffstat (limited to 'Types.h')
-rw-r--r--Types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Types.h b/Types.h
index 935c39eb..83436efa 100644
--- a/Types.h
+++ b/Types.h
@@ -233,9 +233,10 @@ public:
/// if no type fits.
static std::shared_ptr<StaticStringType> smallestTypeForLiteral(std::string const& _literal);
- StaticStringType(int _bytes);
+ explicit StaticStringType(int _bytes);
virtual bool isImplicitlyConvertibleTo(Type const& _convertTo) const override;
+ virtual bool isExplicitlyConvertibleTo(Type const& _convertTo) const override;
virtual bool operator==(Type const& _other) const override;
virtual unsigned getCalldataEncodedSize() const override { return m_bytes; }