AnsweredAssumed Answered

templates and section directives

Question asked by JWellbelove on Jan 30, 2012
Latest reply on Mar 8, 2012 by JWellbelove

Does anyone know how to use template member functions and section directives together?

 

The compiler complains when the section directive is included.

 

class Region

{

    template <typename TFunctor, typename TPixel>

    section ("L1_code")

    void ProcessXRegion(TFunctor& functor, TPixel* pImage)

    {

    }

};

 

section directive can only be used with a class member definition, not its declaration.

          Ignoring directive

  section ("L1_code")

Outcomes