Changeset 3836 in Sophya for trunk/SophyaLib/NTools


Ignore:
Timestamp:
Aug 5, 2010, 3:23:35 PM (15 years ago)
Author:
ansari
Message:

Declaration extern des classes templ des classes template avec instantiation explicite (avec flag NEED_EXT_DECL_TEMP) pour regler le pb de dynamic_cast sur Mac OS X 10.6, Reza 05/08/2010

Location:
trunk/SophyaLib/NTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/cimage.cc

    r3667 r3836  
    88#include <stdlib.h>
    99#include "pexceptions.h"
    10 #include "cimage.h"
    1110#include "datatype.h"
    1211#include <typeinfo>
     12
     13#define CIMAGE_CC_BFILE  // avoid extern template declarations
     14#include "cimage.h"
    1315
    1416/*!
  • trunk/SophyaLib/NTools/cimage.h

    r3189 r3836  
    138138};
    139139
     140
     141//--------- extern template declarations (if needed) -----------
     142#if defined ( NEED_EXT_DECL_TEMP ) && !defined( CIMAGE_CC_BFILE )
     143extern template class Image<uint_1>;
     144extern template class Image<uint_2>;
     145extern template class Image<uint_4>;
     146extern template class Image<uint_8>;
     147extern template class Image<int_1>;
     148extern template class Image<int_2>;
     149extern template class Image<int_4>;
     150extern template class Image<int_8>;
     151extern template class Image<r_4>;
     152extern template class Image<r_8>;
     153extern template class Image< complex<r_4> >;
     154extern template class Image< complex<r_8> >;
     155#endif  // Fin de if defined ( NEED_EXT_DECL_TEMP )
     156
    140157}  // End of namespace SOPHYA
    141158
Note: See TracChangeset for help on using the changeset viewer.