Error when compiling R11.5 SDK

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 05/10/2009 at 09:37, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   11.5 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
   Hi,

When compiling the R11.5 SDK with the __C4D_NO_NEW_DELETE__ preprocessor flag to prevent operator overloads for new and delete, there is a compilation error:

in c4d_memory.h,

> `

  
\>  template <typename T> void gDelete(T *&v;)  
\>  {  
\>     ...  
\>     v->~T();  
\>     ...  
\>  }  
\>  

`

The line shown above will produce an error when the function is compiled with MovieLoader class, which has a private destructor.

I fixed the error by moving the destructor to public, but thought you'd want to know that.

Best,
Ben