← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 1905: getClassIndexStatic() member turned to public.

 

------------------------------------------------------------
revno: 1905
committer: Lionel Favier <lfavier@r2balme>
branch nick: trunk
timestamp: Wed 2009-12-16 18:07:19 +0100
message:
  getClassIndexStatic() member turned to public.
modified:
  lib/multimethods/Indexable.hpp


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription.
=== modified file 'lib/multimethods/Indexable.hpp'
--- lib/multimethods/Indexable.hpp	2009-12-13 19:27:57 +0000
+++ lib/multimethods/Indexable.hpp	2009-12-16 17:07:19 +0000
@@ -45,7 +45,7 @@
 // this macro is used by classes that are a dimension in multimethod matrix
 
 #define REGISTER_CLASS_INDEX(SomeClass,BaseClass)                                      \
-	private: static int& getClassIndexStatic() { static int index = -1; return index; } \
+	public: static int& getClassIndexStatic() { static int index = -1; return index; } \
 	public: virtual int& getClassIndex()       { return getClassIndexStatic(); }        \
 	public: virtual const int& getClassIndex() const { return getClassIndexStatic(); }  \
 	public: virtual int& getBaseClassIndex(int depth) {              \