diff options
Diffstat (limited to '')
| -rw-r--r-- | graphics/libx3dtk/files/patch-src-kernel-abstractNode-X3DAbstractNode.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/libx3dtk/files/patch-src-kernel-abstractNode-X3DAbstractNode.h b/graphics/libx3dtk/files/patch-src-kernel-abstractNode-X3DAbstractNode.h new file mode 100644 index 000000000000..10e5dfd3c157 --- /dev/null +++ b/graphics/libx3dtk/files/patch-src-kernel-abstractNode-X3DAbstractNode.h @@ -0,0 +1,19 @@ +*** src/kernel/abstractNode/X3DAbstractNode.h.orig Sat Dec 16 16:20:51 2006 +--- src/kernel/abstractNode/X3DAbstractNode.h Sat Dec 16 16:21:07 2006 +*************** +*** 102,108 **** + inline void defineTypeName(const SFString &name, const SFString &component = SFString(""), const SFString &sceneGraph = SFString("")) {defineTempTypeName(this, name, component, sceneGraph);}; + /// Method to avoid defineTypeName having a template parameter. + template<class T> +! inline void defineTempTypeName(T *t, const SFString &name, const SFString &component, const SFString &sceneGraph) {define(Recorder<T>::getTypeName(name, component, sceneGraph));}; + /// Defines an attribute. + template<class T, class V> + inline void defineAttribute(const SFString &name, V T:: *member, const V &init); +--- 102,108 ---- + inline void defineTypeName(const SFString &name, const SFString &component = SFString(""), const SFString &sceneGraph = SFString("")) {defineTempTypeName(this, name, component, sceneGraph);}; + /// Method to avoid defineTypeName having a template parameter. + template<class T> +! inline void defineTempTypeName(T * /* t */, const SFString &name, const SFString &component, const SFString &sceneGraph) {define(Recorder<T>::getTypeName(name, component, sceneGraph));}; + /// Defines an attribute. + template<class T, class V> + inline void defineAttribute(const SFString &name, V T:: *member, const V &init); |
