Re: genreflex ignoring STL container deque

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Thu, 14 Jan 2010 10:11:24 +0100


Hi,

troy d. straszheim wrote on 01/13/2010 08:46 PM:
> Just FYI the standard way to explicitly instantiate these would be
>
> template class std::deque<double>;
> template class std::vector<std::deque<double> >;
>
> and you'd do it in an implementation file, not a header, to avoid
> having duplicates of the instantiated code in every translation unit.

The trick with genreflex is to surround the instantiation request by #ifdef __GCCXML__
#endif
or to put it into a separate header that gets passed to genreflex but isn't #included anywhere.

Cheers, Axel. Received on Thu Jan 14 2010 - 10:08:55 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 14 2010 - 17:50:01 CET