LLL: support passing error reasons

This commit is contained in:
Alex Beregszaszi 2016-10-26 13:47:32 +01:00
parent 979d18f19c
commit b269202b73

View File

@ -51,6 +51,11 @@ 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 {
auto err = T();
err << errinfo_comment(reason);
BOOST_THROW_EXCEPTION(err);
}
void constructOperation(sp::utree const& _t, CompilerState& _s);
bool m_finalised = false;