aboutsummaryrefslogtreecommitdiffstats
path: root/liblll/CodeFragment.h
diff options
context:
space:
mode:
Diffstat (limited to 'liblll/CodeFragment.h')
-rw-r--r--liblll/CodeFragment.h4
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);