Adding <functional> header for vc 2012

2013-08-25
2013-08-25
  • Ron AF Greve
    Ron AF Greve
    2013-08-25

    Hi,

    (Not sure if this is the right place to ask this).

    I tried compiling (3.0) under vc2012 but various STL functions like bind1st were not found (I think I had the same issue with my own code). I believe these are now in <functional>. I added it to
    vertex.h and LWOAnimation.cpp in my copy (maybe there are better places but after that the assimp.lib compiled without problems). Maybe this can be added to the source?

    Thanks for the great library :-)

    Regards, Ron AF Greve

    vertex.h

    #ifndef AI_VERTEX_H_INC
    
    #define AI_VERTEX_H_INC
    
    #include <functional>
    
    namespace Assimp {
    
    /** @file LWOAnimation.cpp
    
    * @brief LWOAnimationResolver utility class 
    
    *
    
    * It's a very generic implementation of LightWave's system of
    
    * componentwise-animated stuff. The one and only fully free
    
    * implementation of LightWave envelopes of which I know.
    
    */
    
    #include "AssimpPCH.h"
    
    #include <functional>
    
    #if (!defined ASSIMP_BUILD_NO_LWO_IMPORTER) && (!defined ASSIMP_BUILD_NO_LWS_IMPORTER)
    
     
    Last edit: Ron AF Greve 2013-08-25