On Tue, 15 Jul 2003, Serassio Guido wrote:
> MSVC seems don't like constructs like this:
> 
> template <class MatchType>
> MemPool (*ACLStrategised<MatchType>::Pool)(NULL);

You could try using typedefs, like

    typedef MemPool * pointer_to_MemPool;
    pointer_to_MemPool ACLStrategised<MatchType>::Pool(NULL);

or

    typedef class ACLStrategised<MatchType> ACLStrategised_MatchType;
    MemPool *ACLStrategised_MatchType::Pool(NULL);

Alternatively, would MSVC be happier with references instead of
pointers?  (This whould need changes elsewhere, of course.)

    MemPool & ACLStrategised<MatchType>::Pool (NULL);

You might also need extra parentheses in all the above.

--apb (Alan Barrett)

Reply via email to