Brett Viren wrote:
> Roel Aaij <Roel.Aaij_at_cern.ch> writes:
>
>> I think you could add something like:
>>
>> namespace {
>> struct _Instantiations {
>> // begin instantiations
>> std::deque<double> _i1;
>> std::vector<std::deque<double> > _i2;
>> // end instantiations
>> };
>> }
>>
>> To headers.h file. I think that will solve your problem.
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.
-t Received on Wed Jan 13 2010 - 20:46:41 CET
This archive was generated by hypermail 2.2.0 : Thu Jan 14 2010 - 11:50:01 CET