From 9897c56b2cacf162f8fd41d60e91b7f71863f8d5 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 21 Aug 2017 22:05:24 +0100 Subject: Mark a lot of functions static (where possible) --- liblll/CodeFragment.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'liblll/CodeFragment.h') 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 void error() const { BOOST_THROW_EXCEPTION(T() ); } - template void error(std::string const& reason) const { + template static void error() { BOOST_THROW_EXCEPTION(T() ); } + template static void error(std::string const& reason) { auto err = T(); err << errinfo_comment(reason); BOOST_THROW_EXCEPTION(err); -- cgit v1.2.3