Hi Robert, hi all, "const T *v": When T is a function, I guess the compiler reads "pointer to a const function" instead of "const pointer to a function". Thus the const applied on a function has no meaning. I don't know, however, how to avoid this, since "const (T *) v" will result in a parse error. Any idea?
Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ Le Tue, 03 Feb 2009 14:41:21 +0100, Robert Osfield <robert.osfi...@gmail.com> a écrit: > Hi All, > > I can't quite fathom the following warning either... > > 164>..\..\include\osgIntrospection/Value(373) : warning C4180: > qualifier applied to function type has no meaning; ignored > 164> ..\..\include\osgIntrospection/TypedMethodInfo(84) : see > reference to function template instantiation > 'osgIntrospection::Value::Value<bool(osg::Object &,osgDB::Input &)>(T > (__cdecl *))' being compiled > 164> with > 164> [ > 164> T=bool (osg::Object &,osgDB::Input &) > 164> ] > 164> ..\..\include\osgIntrospection/TypedMethodInfo(77) : while > compiling class template member function 'osgIntrospection::Value > osgIntrospection::TypedMethodInfo0<C,R>::invoke(const > osgIntrospection::Value &,osgIntrospection::ValueList &) const' > 164> with > 164> [ > 164> C=osgDB::DotOsgWrapper, > 164> R=osgDB::DotOsgWrapper::ReadFunc > 164> ] > 164> .\osgDB\DotOsgWrapper.cpp(58) : see reference to class > template instantiation 'osgIntrospection::TypedMethodInfo0<C,R>' being > compiled > 164> with > 164> [ > 164> C=osgDB::DotOsgWrapper, > 164> R=osgDB::DotOsgWrapper::ReadFunc > 164> ] > > > template<typename T> Value::Value(const T *v) > { > _inbox = new Ptr_instance_box<const T *>(v); <<<<< This is > line 373, which generates the warning > _type = _inbox->type(); > _ptype = _inbox->ptype(); > } > > > I have other stuff to chase up so I'll leave this is the hands of > those more community to see if they figure it out and suggest a way to > resolve the problem. > > Robert. > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org