aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Thomas <alec@swapoff.org>2014-08-14 08:57:31 +1000
committerAlec Thomas <alec@swapoff.org>2014-08-14 08:57:31 +1000
commita0e981299e9005d9e05b37f3c441ac07dddc6ac1 (patch)
treefb020bf507cfbf4977e4759e5d1314afcb5e283b
parent0db983990d66132bd8a0cef594de9c1db9ebe0a4 (diff)
Make fail() static.
-rw-r--r--entityx/Entity.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/entityx/Entity.h b/entityx/Entity.h
index 6e5eda7..e632e2b 100644
--- a/entityx/Entity.h
+++ b/entityx/Entity.h
@@ -225,7 +225,7 @@ struct BaseComponent {
protected:
- void fail() {
+ static void fail() {
#if defined(_HAS_EXCEPTIONS) || defined(__EXCEPTIONS)
throw std::bad_alloc();
#else