diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 05:05:24 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 17:51:46 +0800 |
commit | 9897c56b2cacf162f8fd41d60e91b7f71863f8d5 (patch) | |
tree | fb0f04a445940004a8a45e03bc98d149c5cc71a7 /liblll/CodeFragment.h | |
parent | 2a5772cff7d03de0d02c5358a6a6755e8f802697 (diff) | |
download | dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.gz dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.bz2 dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.lz dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.xz dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.zst dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.zip |
Mark a lot of functions static (where possible)
Diffstat (limited to 'liblll/CodeFragment.h')
-rw-r--r-- | liblll/CodeFragment.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/liblll/CodeFragment.h b/liblll/CodeFragment.h index 6622de3e..95d21563 100644 --- a/liblll/CodeFragment.h +++ b/liblll/CodeFragment.h @@ -50,8 +50,8 @@ public: private: void finalise(CompilerState const& _cs); - template <class T> void error() const { BOOST_THROW_EXCEPTION(T() ); } - template <class T> void error(std::string const& reason) const { + template <class T> static void error() { BOOST_THROW_EXCEPTION(T() ); } + template <class T> static void error(std::string const& reason) { auto err = T(); err << errinfo_comment(reason); BOOST_THROW_EXCEPTION(err); |