Ignore:
Timestamp:
Aug 5, 2010, 2:16:20 PM (15 years ago)
Author:
ansari
Message:

Introduction et gestion du flag preprocesseur NEED_EXT_DECL_TEMP pour declaration extern des classes template avec instantiation explicite (pb dynamic_cast sur Mac OS 10.6), Reza 05/08/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/ndatablock.h

    r3385 r3831  
    99#include <stdlib.h>        /* pour que size_t soit defini */
    1010#include "anydataobj.h"
     11#include <complex>
    1112#include <iostream>
    1213
     
    236237                      {return a.Div(b);}
    237238
     239//--------- extern template declarations (if needed) -----------
     240#if defined ( NEED_EXT_DECL_TEMP ) && !defined( NDATABLOCK_CC_BFILE )
     241extern template class NDataBlock<uint_1>;
     242extern template class NDataBlock<uint_2>;
     243extern template class NDataBlock<int_1>;
     244extern template class NDataBlock<int_2>;
     245extern template class NDataBlock<int_4>;
     246extern template class NDataBlock<int_8>;
     247extern template class NDataBlock<uint_4>;
     248extern template class NDataBlock<uint_8>;
     249extern template class NDataBlock<r_4>;
     250extern template class NDataBlock<r_8>;
     251extern template class NDataBlock< complex<r_4> >;
     252extern template class NDataBlock< complex<r_8> >;
     253#ifdef SO_LDBLE128
     254extern template class NDataBlock<r_16>;
     255extern template class NDataBlock< complex<r_16> >;
     256#endif
     257
     258#endif  // Fin de if defined ( NEED_EXT_DECL_TEMP )
     259
    238260} // Fin du namespace
    239261
Note: See TracChangeset for help on using the changeset viewer.