06-11-2023, 02:45 PM
Your example is compliant, as f1 and f2 are instantiated with the explicit instantiation of Temp<int>.
See para 10 in this draft standard: https://eel.is/c++draft/temp.explicit
See para 10 in this draft standard: https://eel.is/c++draft/temp.explicit
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group