Solaris 10 updates

Added declarations of static member storage for templated classes.
This commit is contained in:
Harry Moffat 2007-03-20 21:58:27 +00:00
parent ee22109ec5
commit b23a49c1f2
4 changed files with 12 additions and 0 deletions

View file

@ -32,6 +32,9 @@
using namespace std;
using namespace Cantera;
// Assign storage for the static member of the Templated Cabinet class
Cabinet<XML_Node> * Cabinet<XML_Node>::__storage = 0;
inline XML_Node* _xml(int i) {
return Cabinet<XML_Node>::cabinet(false)->item(i);
}

View file

@ -60,6 +60,9 @@ inline ThermoPhase* _th(int n) {
return Storage::__storage->__thtable[n];
}
// Assign storage for the templated Cabinet class's static member
Cabinet<Func1> * Cabinet<Func1>::__storage = 0;
inline Func1* _func(int i) {
return Cabinet<Func1>::cabinet()->item(i);
}

View file

@ -27,6 +27,9 @@
#include "flib_defs.h"
// Assign storage for the templated classes' static member
Cabinet<XML_Node> * Cabinet<XML_Node>::__storage=0;
inline XML_Node* _xml(const integer* n) {
return Cabinet<XML_Node>::cabinet()->item(*n);
}

View file

@ -7,6 +7,9 @@
#include "../../clib/src/Cabinet.h"
// Assign storage for the templated classes static member
Cabinet<XML_Node> * Cabinet<XML_Node>::__storage = 0;
inline XML_Node* _xml(const integer* i) {
return Cabinet<XML_Node>::cabinet(false)->item(*i);
}