Ignore:
Timestamp:
07/31/12 17:20:37 (21 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixes for clang compiler support.

Added 'TOrangeVector::classDescription()' specialization to
'DEFINE_TOrangeVector_classDescription' macro and removed its default implementation
in the template class (static 'st_classDescription' member must be initialized/specialized before
its use).

A similar problem arises in the included '.ppp' files where st_classDescription is used. So I
moved all '.ppp. includes after the "DEFINE_*"s.

Removed unnecessary/duplicate VWRAPPER/WRAPPER uses.

Added 'this->...' qualifier in template classes (that inherit a from a template class) for
accessing base class methods, otherwise clang does not find them (as per C++ standard).

Moved the TVarList and TAttributed*List definitions/implementations from 'orvector' to 'vars'.
Fixed includes in other files using the two headers accordingly.

Fixed some casts to int with more appropriate casts to size_t/uintptr_t.

Added explicit casts of constants to template class in include/stat.hpp
statistics functions.

(references #1219).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/cls_example.cpp

    r10747 r10960  
    310310PyObject *Example_reference(TPyExample *pex) PYARGS(METH_NOARGS, "unique reference (pointer to) the object") 
    311311{ 
    312   return PyInt_FromLong(int(&PyExample_AS_ExampleReference(pex))); 
     312  return PyInt_FromSize_t(size_t(&PyExample_AS_ExampleReference(pex))); 
    313313} 
    314314 
Note: See TracChangeset for help on using the changeset viewer.