]> code.bitgloo.com Git - clyne/entityx.git/commitdiff
Make fail() static.
authorAlec Thomas <alec@swapoff.org>
Wed, 13 Aug 2014 22:57:31 +0000 (08:57 +1000)
committerAlec Thomas <alec@swapoff.org>
Wed, 13 Aug 2014 22:57:31 +0000 (08:57 +1000)
entityx/Entity.h

index 6e5eda7f9da7c3d769693093df4ba659351ff0a7..e632e2b31fc7753854ff5df106d25dda0ac19b3a 100644 (file)
@@ -225,7 +225,7 @@ struct BaseComponent {
 
 
  protected:
-  void fail() {
+  static void fail() {
 #if defined(_HAS_EXCEPTIONS) || defined(__EXCEPTIONS)
     throw std::bad_alloc();
 #else